以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Android 开发入门 』   (http://bbs.xml.org.cn/list.asp?boardid=56)
----  【基础代码】给TextView文字加上下划线  (http://bbs.xml.org.cn/dispbbs.asp?boardid=56&rootid=&id=126734)


--  作者:挥戈回日
--  发布时间:7/14/2013 5:13:00 PM

--  【基础代码】给TextView文字加上下划线
String mystring=new String("Hello.....");
SpannableString content = new SpannableString(mystring);
content.setSpan(new UnderlineSpan(), 0, mystring.length(), 0);
yourtextview.setText(content);

W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms