View 和View的子类
View的特殊属性 https://developer.android.google.cn/reference/android/widget/TextView.html#attr_android:autoLink
autoLink
all | f | Match all patterns (equivalent to web|email|phone|map). |
2 | Match email addresses. | |
map | 8 | Match map addresses. |
none | 0 | Match no patterns (default). |
phone | 4 | Match phone numbers. |
web | 1 | Match Web URLs. |
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_launcher_foreground"
android:autoLink="phone"
/>