开发者

Android single line TextView without the dots

Is it possible to have a single line TextView that cuts off at the neares开发者_高级运维t pixel and does not add three dots?


<TextView
    android:id="@+id/text_ivew"
    style="@style/Text.Title"
    singleLine="false"
    android:ellipsize="end"
    android:lines="1"
    android:text="text"></TextView>


You should just be able to set the android:ellipsize property to false on your TextView in xml.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜