I have a TextView which i set the text using setText(). In properties, I have set:
Ellipsize = END
Lines = 1
Gravity = Left
Scroll Horizontal = False
But this clips extra text (clips text since where last space is found). But do not include dots (“…”) at the end.
Example:
-------------------------------
| |
Hi how are you ? And where are you now ?
| |
| |
After clipping:
-------------------------------
| |
Hi how are you ? And where
| |
| |
What I want:
-------------------------------
| |
Hi how are you ? And where...
| |
| |
I am using Android 1.6. Plz help.
android:singleLine="true"andtextView.setEllipsize(TruncateAt.END);These are the two key elements to achieve that.