转载 Android TextView加下划线

如果在资源文件里可以这样写

<resources>
    <string name="hello"><u>phone: 1390123456</u></string>
    <string name="app_name">MyLink</string>
</resources>


如果是代码这样写.
TextView textView = (TextView)findViewById(R.id.testView);
textView.setText(Html.fromHtml("<u>"+"hahaha"+"</u>"));

posted @ 2011-08-20 16:52  小0  阅读(279)  评论(0编辑  收藏  举报