1.TextView设置部分字体改变颜色
字体变色
String textStr = "本功能仅支持<font color='#3F51B5'>" + 3000 + "元以内</font>人伤案件,";
TextView.setText(Html.fromHtml(textStr));
字体变色加粗
String textStr = "支持<strong><font color='#3F51B5'>" + 3000 + "元以内</font><strong>人伤案件,";
TextView.setText(Html.fromHtml(textStr));