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

Xml代码  TextView 加下划线
  1.    
  2. <resources>  
  3.     <string name="hello"><u>phone: 1390123456</u></string>  
  4.     <string name="app_name">MyLink</string>  
  5. </resources>  
  <resources>     <string name="hello"><u>phone: 1390123456</u></string>     <string name="app_name">MyLink</string> </resources>
 

如果是代码这样写

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

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-06-20
  • 2021-05-18
  • 2021-12-02
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-12-27
相关资源
相似解决方案