String s = HTML.fromHtml("<font color=\"#ff0000\">1</font>2");
TextView tv = new TextView(this);
tv.setText(s);
Android TextView 部分文字带有颜色
最新推荐文章于 2022-10-29 11:31:09 发布
String s = HTML.fromHtml("<font color=\"#ff0000\">1</font>2");
TextView tv = new TextView(this);
tv.setText(s);