我有这个 TextView
<TextView android:id="@+id/name"
android:singleLine="true"
android:layout_height="wrap_content"
android:textColor="#ffffff"
android:textSize="16sp"
android:layout_width="fill_parent"/>
问题是如果文本更大然后 textview 可以显示它只是停止显示它看起来像这样|some unfinished tex|
让用户更清楚这是未完成的,它只显示了文本的一部分
我更喜欢这样的|Some unfinished te..|
如何实现?
最佳答案
你试过设置android:ellipsize吗?参数“结束”?
关于android - 横向限制textview的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9110335/