Android TextView中怎么改变某个字体的颜色
代码块
String result = "实时更新中,当前大盘指数:<font color='red'>%d</font>";
result = String.format(result, (int) (Math.random() * 3000 + 1000));
textView.setText(Html.fromHtml(result));
String result = "实时更新中,当前大盘指数:<font color='red'>%d</font>";
result = String.format(result, (int) (Math.random() * 3000 + 1000));
textView.setText(Html.fromHtml(result));