包含URL的TextView无法辩解

问题描述

我使用的是API 28,并且我所有带有属性android:justificationMode="inter_word"的TextView都显示得很好(合理)。

但是,当android:text属性包含链接时(例如:

<string name="strIntro">This is some <u>text</u> that displays just fine,\n including all tags and the <a href="www.google.com">link</a>,but not justified\n</string> 

),文本将对齐到左侧-对齐的文本对齐会中断。 一旦我从字符串中删除链接,对齐就可以正常工作!

对此有任何解决办法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)