我有一个TextView设置为ellipsize但是当我把文本中它没有这样做。任何想法?
<的TextView
机器人:ID =@ + ID / LegalsView
机器人:ellipsize =结束
机器人:layout_width =WRAP_CONTENT
机器人:layout_height =WRAP_CONTENT
机器人:textAppearance =机器人:ATTR / textAppearanceMedium/>
解决方案
尝试:
安卓SINGLELINE =真
I have a TextView set to ellipsize but when I put the text in it doesn't do so. Any ideas?
<TextView
android:id="@+id/LegalsView"
android:ellipsize="end"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
解决方案
Try:
android:singleLine="true"