String str = "15912345678";
String tmp = "159";
tv = (TextView)findViewById(R.id.test_tv);
tv.setText(Html.fromHtml(str.replaceAll(tmp, "<font color='#cc0000'>" + tmp + "</font>")));
效果 15912345678
String tmp = "159";
tv = (TextView)findViewById(R.id.test_tv);
tv.setText(Html.fromHtml(str.replaceAll(tmp, "<font color='#cc0000'>" + tmp + "</font>")));
效果 15912345678