我正在开发一个应用程序,并添加了一个带有autoLink="email"的简单TextView
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textSize="16dp"
android:autoLink="email"
android:text="@string/lblContactUs" />
我的字符串如下所示:
<string name="lblContactUs">Federico Navarrete <a href="mailto:fanm_45@outlook.com?Subject=Contact%20Us%TipSal" target="_top">fanm_45@outlook.com</a></string>
总是,当我点击链接时,主题是空的。
另外,我注意到如果标签内没有真实的电子邮件:
<a href="mailto:fanm_45@outlook.com?Subject=Contact%20Us%TipSal">fanm_45@outlook.com</a>
但是,我有这样的事情:
<a href="mailto:fanm_45@outlook.com?Subject=Contact%20Us%TipSal">Contact us</a>
该链接不执行任何操作,代码被完全忽略。有谁知道我应该改变什么?或者为什么不工作?
PS: 我已经在 Gmail 和 Blue Mail 客户端上进行了测试,我得到了相同的结果。