开发者

Android single line TextView without the dots

开发者 https://www.devze.com 2023-02-07 20:46 出处:网络
Is it possible to have a single line TextView that cuts off at the neares开发者_高级运维t pixel and does not add three dots?<TextView

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

精彩评论

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