问题
Is it possible to have a single line TextView
that cuts off at the nearest pixel and does not add three dots?
回答1:
<TextView
android:id="@+id/text_ivew"
style="@style/Text.Title"
singleLine="false"
android:ellipsize="end"
android:lines="1"
android:text="text"></TextView>
回答2:
You should just be able to set the android:ellipsize property to false on your TextView in xml.
来源:https://stackoverflow.com/questions/4831529/android-single-line-textview-without-the-dots