I was wondering if there is a way to replace the last three characters of a TextView with ‘…’ but only if the current text overflows the TextView. I have to limit the TextView to 1 line but sometimes the text is too long and I would like to show ‘…’ at the end to indicate the text is longer than what is showing.
Thanks
Yes. You can use http://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize
to configure the display of the “…”.