I would like to hyperlink any text that goes to imgur.com to open a new activity in my application (with intent). Is this possible? If so, how?
use this
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="http://www.imgur.com"
android:autoLink="web"
android:id="@+id/textView"/>
this will open a pop up for the link you have given in text
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.