textview添加autoLink属性即可
<TextView android:id="@+id/totwo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@null" android:text="Hello World!" />
获取url
android:autoLink="web"
获取电话号码
android:autoLink="web|phone"
获取email
android:autoLink="web|phone|email"
本文介绍了 Android 中 TextView 控件的 autoLink 属性使用方法,包括如何通过设置此属性实现文本中的网址、电话号码和电子邮件地址自动转换为可点击链接。
201

被折叠的 条评论
为什么被折叠?



