I am using android:ellipsize=\"end\" in android xml file, & surprisingly I am not getting the layout that I want, the 3 dots(...) are showing but after that
I was experiencing the same problem when displaying a String containing html formatted text.
Removing all html tags with myText.replaceAll("\\<.*?>","")
solved the problem.
You can also remove html tags using Html.fromHtml(myText).toString()
, but notice that you must use .toString() and not apply the fromHtml output directly to the TextView. If some special characters are html encoded (&, >, <...) you can safely apply again Html.fromHtml() to the final String.