简体   繁体   English

对话框中的android文本视图

[英]android text view in dialog box

hi i am a new android developer. 嗨,我是一个新的android开发人员。 In my app i have created a dialog box in text view which appears to be a pop up window. 在我的应用程序中,我在文本视图中创建了一个对话框,该对话框似乎是一个弹出窗口。 In that the content i type is to be in left alignment form how can i move it to be in center, just like a middle alignment form..... 因为我键入的内容是左对齐形式,我如何才能将其移动到中心,就像中间对齐形式一样.....

Siva, 西瓦

According to my understanding of your question, you want your text to be aligned to center, right ??? 根据我对您问题的理解,您希望文本与居中对齐,对吗? if yes then try this in your TextView: 如果是,则在您的TextView中尝试以下操作:

android:gravity = "center_vertical|center"

Well, if it is not what you want then please explain your question a bit more. 好吧,如果这不是您想要的,请再解释一下您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM