Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android single line TextView without the dots

Is it possible to have a single line TextView that cuts off at the nearest pixel and does not add three dots?

like image 398
700 Software Avatar asked Jan 28 '11 18:01

700 Software


2 Answers

<TextView
    android:id="@+id/text_ivew"
    style="@style/Text.Title"
    singleLine="false"
    android:ellipsize="end"
    android:lines="1"
    android:text="text"></TextView>
like image 101
gio Avatar answered Sep 28 '22 07:09

gio


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

like image 35
bran.strat Avatar answered Sep 28 '22 08:09

bran.strat