我定义了一个TextView,例如如下:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="This is very long text"
android:textSize="34pt"/>
在使用API级别14/15时,这会导致整个单词"very"被切断,我实际上显示的文本是"This is",但我需要像"This is ver"这样截断该文本。
有人可以问我如何实现这种行为吗?