📜  android高亮部分textview - Java代码示例

📅  最后修改于: 2022-03-11 14:52:36.738000             🧑  作者: Mango

代码示例1
String newString = oldString.replaceAll(textToHighlight, ""+textToHighlight+"");
textView.setText(Html.fromHtml(newString));