指定是否将形如邮箱地址、电话号码等的子字符串显示为超链接,可选值有"web"、"email"、"phone"、"map"、"all"。例如以下TextView:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="XXX aaa@bbb.com 12345678900 YYY."
android:autoLink="email|phone"/>
运行时显示效果为: