【发布时间】:2011-05-26 06:17:35
【问题描述】:
默认情况下,如果行长于视图,Android EditText 将换行,如下所示:
Thisisalineanditisveryverylongs (end of view)
othisisanotherline
或者如果该行包含标点符号,如下所示:
Thisisalineanditsnotsolong; (several characters from the end of view)
butthisisanotherline
作为我的工作要求,只有当行长于视图时,文本才需要换行,如下所示:
Thisisalineanditsnotsolong;andt (end of view)
hisisanotherline
一定有办法实现这一点,对吗?到目前为止,我还没有找到这样做的方法。
【问题讨论】:
标签: android text line android-edittext punctuation