我在 ButtonView 中使用了自动链接,如下所示,
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/email"
android:autoLink="email"
/>
如果我使用像下面这样的字符串,我可以去电子邮件,
<string name="mail"><a href = "abc@gmail.com">abc@gmail.com</a></string>
但如果我喜欢下面,不会发生,
<string name="mail"><a href = "abc@gmail.com">Send Mail</a></string>
这就是问题...但是单击按钮时没有任何反应...当我使用自动链接进行 textView 工作时效果很好。但是为什么不为 Button 工作???提前谢谢