提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 TextView textView = (TextView) findViewById( R.id.tv ); String text = "<font color=\"#d93b3a\">" + "快过年了" + "</font>" +
"<font color=\"#666666\">" + "哈哈哈哈" + "</font>" +
"<font color=\"#00caca\">" + "我是绿色的" + "</font>" ; textView.setText( Html.fromHtml(text) ) ;
显示的效果
