天天看點

Android TextView設定單個文字顔色

String name = <font color=#17B4EB>你要輸入的文字</font>; String content = <font color=#66ccff>使用html代碼</font>; textView.setText(Html.fromHtml(name+content));