If you copy a Kotlin solution of nastylion, you can use it like:
textView.handleUrlClicks { url ->
Timber.d("click on found span: $url")
// Call WebView here.
}
Also you can see an article with its LinkMovementMethod
and linkify
, but it's too difficult (contains different masks and popup menus).