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 used :
if (myModel.mDataText().length() > 150) { mTextView.setText(Html.fromHtml(myModel.mDataText().substring(0, 150) + "...")); } else { mTextView.setText(Html.fromHtml(myModel.mDataText() + "...")); }