DEV Community

Mayank
Mayank

Posted on

Answer:

Thanks to @andy

textview.getUrls() gets you the spannable URLs in the text view - so in your example it would return an array of length 1 and [0].getUrl() would return "url".

((TextView) v).getUrls()[0].getURL()

Top comments (0)