Abhishek
Abhishek

Reputation: 2370

Any other methods to show 3 dots or truncate in TextView

Upvotes: 5

Views: 1899

Answers (2)

Thientvse
Thientvse

Reputation: 1791

You can user attribute:

android:ellipsize="end"


android:singleLine="true"

I hope it helps you!

Upvotes: 0

Santosh Bharati
Santosh Bharati

Reputation: 71

you can use

 android:ellipsize="end"
 android:maxLines="1"
 android:minLines="1"
 android:singleLine="true"

Upvotes: 4

Related Questions