Answers for "how to highlight a work in android studio"

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 a work in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language