@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView textView = (TextView) findViewById(R.id.cmd100); textView.setText(Html.fromHtml("Hello <b>CMD100</b>,<font color=\"red\"> hello GM2.0!!</font> <font color=\"#006666\"><b>CMD100 GM2.0</b> 即将上线!大家加油,都把自己该准备的准备好咯。</font>")); }效果图: