Answers for "android highlight text"

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 "Java"

Java Answers by Framework

Browse Popular Code Answers by Language