首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

TextView 加上划线

2012-07-28 
TextView 加下划线如果是在资源文件里,可以这样写.Xml代码resourcesstring namehellouphone: 139

TextView 加下划线
如果是在资源文件里,可以这样写.

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


<resources>
    <string name="hello"><u>phone: 1390123456</u></string>
    <string name="app_name">MyLink</string>
</resources> 
如果是代码这样写

Java代码 
TextView textView = (TextView)findViewById(R.id.testView);   
textView.setText(Html.fromHtml("<u>"+"hahaha"+"</u>")); 

热点排行