'I want to open links in a WebView when a link is clicked from a Text Composable in Android
I am getting HTML content from API which is having links. I am loading the html content in my Text Composable using fromHTML method. Now if user clicks on any one of the link in the Text Composable then I want to open that link in a separate WebViewClient on next screen. What is the best practice to achieve this?
I tried Spannable way but not working as I expected. I want to detect click on link and want to extract that link address so that I can provide that URL to webview
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
