I have a database search query which search in the database for a word entered by the user and return a Cursor.
database search query
Cursor
In my ListActivity
ListActivity
insert HTML code for color around word and set it to your textView .
like
String newString = oldString.replaceAll(textToHighlight, ""+textToHighlight+""); textView.setText(Html.fromHtml(newString));