How to make EditText hint not to wrap?

六月ゝ 毕业季﹏ 提交于 2019-12-04 02:41:26

Have you tried android:ellipsize yet? This can be set to truncate the line to end in "..." either at the start, the middle, the end, or you can set it to marquee (scroll across). Not sure offhand whether this applies to hints or not, but it should.

Try android:singleLine="true"

Use android:maxLines="1" or android:singleLine="true" instead of android:lines="1"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!