android highlight part of textview

73

android highlight part of textview -

String newString = oldString.replaceAll(textToHighlight, "<font color='red'>"+textToHighlight+"</font>");
textView.setText(Html.fromHtml(newString));

Comments

Submit
0 Comments