Answers for "how to highlight textview in 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 "how to highlight textview in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language