dyl*_*phy 8 formatting android hint android-edittext
我已经看到了很多与此相似的问题,但我认为这仍然具有新的意义:
1)当你设置引力时提示文本消失
2)android:ellipsize="start"修复了所以你可以有中心提示和居中文本
3)为什么下面的代码仍然显示居中提示文字?
<EditText
android:id="@+id/details"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="use this area to provide specific identification information including approximate size, vessel name and registration numbers if available"
android:background="@android:drawable/editbox_background"
android:layout_below="@id/details_title"
/>
Run Code Online (Sandbox Code Playgroud)
是因为fill_parent而不是wrap_content?我想也许是因为这个暗示是多线的,但我缩短了它,它仍然出现并且居中.这是我和其他需要android:ellipsize="start"正确显示的EditTexts之间的唯一区别.它只是一个错误吗?
| 归档时间: |
|
| 查看次数: |
2677 次 |
| 最近记录: |