Answers for "highlight text in textview android"

1

android highlight part of textview

String newString = oldString.replaceAll(textToHighlight, "<font color='red'>"+textToHighlight+"</font>");
textView.setText(Html.fromHtml(newString));
Posted by: Guest on January-17-2021

Code answers related to "highlight text in textview android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language