There is a property in text view to have web links, email address and phone number to make them as hyper link and actionable.
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoLink="web|email|phone|map"
android:linksClickable="true"/>
So the name of the property is "android:autoLink" and in this we can specify the control which we need to show as hyperlink. Like I specified for "web, email, phone and map". And to have a action on click on the hyperlink just use property "android:linksClickable" and assign true to it. This property will open the apps which can handle this actions. Like click on phone number will open open dialer screen with the number on which you clicked same for others.
0 Comment(s)