【发布时间】:2017-03-12 21:04:31
【问题描述】:
我的意思是,是否可以在单个字符串中将 文本 URL 链接 更改为绿色?
例如,当我有一个包含多个 URL 的字符串时,例如 below 示例。 (第 1 部分)是否可以使用 字符串替换 将“http://information.com/qokp076wulpw”的文本颜色设置为绿色,这样就可以像第 2 部分一样?
第 1 部分:
<a class="postlink" href="http://test.site/i7xt1.htm">http://test.site/i7xt1.htm<br/></a><br/>Mirror:<br/><a class="postlink" href="http://information.com/qokp076wulpw">http://information.com/qokp076wulpw<br/></a>
第 2 部分:
<a class="postlink" href="http://information.com/qokp076wulpw"><font color='#1AB053'>http://information.com/qokp076wulpw</font><br/></a>
【问题讨论】:
-
您的链接已失效。
标签: java android string replace textcolor