不带有下划线的Andr​​oid TextView的链接? [英] Android TextView link without underline?

查看:158
本文介绍了不带有下划线的Andr​​oid TextView的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用链接的TextView本:

I use a TextView with links by this:

TextView tv ... 
tv.setText( Html.fromHtml(somehtml)) 

这是确定通过设置属性机器人控制链接颜色:textColorLink,但我可以删除它的下划线

It is ok to control the link color by setting attribute android:textColorLink, but can I remove the underline of it?

推荐答案

确定现在HTML锚标记,以避免下划线现在使用的物业风格=文本修饰:无

OK now with html anchor tag, to avoid the underline now use the property STYLE="text-decoration:none"

<一个STYLE =文本修饰:无HREF = \\link.html \\>它没有下划线< / A>

< a STYLE="text-decoration:none" HREF=\"link.html\">it has no underline < /a >

这必须用的WebView工作,但在一个TextView,我使用的是Android 1.5,1.6和那不可能的。 =(

这篇关于不带有下划线的Andr​​oid TextView的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆