你知道如何在 TextView
中使用多个彩色 anchor 标签吗? ?我试过使用 Html.fromHTML("<a href='#'><font color='#f00'>text</font></a>")
但它不起作用,我真的需要一个不使用 webview 的 html 解决方案。
谢谢!
最佳答案
您可以尝试使用双引号:
<a href="#"><font color="#f00">text</font></a>
除此之外,您还需要手动操作 the ForegroundColorSpan
你自己。
关于android - TextView 中的多个彩色 <a> 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15121341/