最佳答案
我正在寻找一种方法,以改变颜色的文本的一个单词在一个 TextView
从一个 Activity
。
例如:
String first = "This word is ";
String next = "red"
TextView t = (TextView) findViewById(R.id.textbox);
t.setText(first + next);
如何将 next
文本的颜色更改为红色?