I am building an android application where I parse a set of data and display in listView. Now when a user searches a word in that data set I highlight that word of text-view.

Now the problem is when that search word is in beginning it is displayed as text-view is maxing line 1 but if it's last of the middle word of the paragraph is highlighted but I want to display that highlighted word in text view with max line 1.

Is there any way to adjust the string in text-view and display highlighted area.