大佬教程收集整理的这篇文章主要介绍了android EditText提示不出现,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这是一个布局:
<RelativeLayout xmlns:android="http://scheR_729_11845@as.android.com/apk/res/android" xmlns:tools="http://scheR_729_11845@as.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <EditText android:id="@+id/GuessAppEditText" android:lines="1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:gravity="center_horizontal" android:inputType="textCapWords" android:hint="@@R_262_10495@ng/Hint" /> </RelativeLayout>
如果我删除android:gravity =“center_horizontal”或android:inputType =“textCapWords”,提示变得可见.
我绝对不知道重力和textCapWords与提示有什么关系.这是另一个Android bug还是我做错了?在前一种情况下,什么是解决办法?我想让我的文本中心对齐和大写,并提示显示.或者我想要太糟糕的Android?
<RelativeLayout xmlns:android="http://scheR_729_11845@as.android.com/apk/res/android" xmlns:tools="http://scheR_729_11845@as.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <EditText android:id="@+id/GuessAppEditText" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:ellipsize="start" android:gravity="center_horizontal" android:hint="hint" android:inputType="textCapWords" android:lines="1" /> </RelativeLayout>
以上是大佬教程为你收集整理的android EditText提示不出现全部内容,希望文章能够帮你解决android EditText提示不出现所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。