1.如果在xml中
<resources>
<string name="hello"><u>phone:0123456</u></string>
<string name="app_name">MyLink</string>
</resources>
2.如果在代码中
(1)
TextView textView = (TextView)findViewById(R.id.tv_test);
textView.setText("0123456");
(2)
tvTest.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线
tvTest.getPaint().setAntiAlias(true);//抗锯齿