我正在寻找一种方法来改变在一个字的文本的颜色TextView从内Activity.
TextView
Activity
例如,有了这个:
String first = "This word is "; String next = "red" TextView t = (TextView) findViewById(R.id.textbox); t.setText(first + next);
如何将next文本颜色更改为红色?
next
string android colors textview
android ×1
colors ×1
string ×1
textview ×1