Reputation: 653
I'm trying to add ellipses to words that exceed 11 ems in an Android textview (instead of having words >11ems wordwrap mid-word) while the rest of the text continues on the next line.
I.E
|Reallylongwordgoeshe...|
|and the rest of the
|
|text goes here.
|
I've decide to just calculate the ems size of each tokenized string, but I'm unsure of how to do that. Any suggestions?
Upvotes: 9
Views: 454
Reputation: 423
The following in the android dev references helped me: https://developer.android.com/reference/android/widget/MultiAutoCompleteTextView.html especially if you look at the documentation for the following: void performFiltering (CharSequence text, int start, int end, int keyCode)
Upvotes: 3