I have a TextView in my layout which has an attribute "clickable=true" set in XML. This is to allow it behave like a button with both text and icon. Now, I add to that TextView HTML text via call HTML.fromHtml(), and apply Linkify.addLinks after that.
The problem is: in such configuration, links are not clickable. Is there any suggestion, how to allow user click on links, other from creating custom TextView-based class?
Thanks
try add an attribute "android:autoLink="web"" to the textview
Also, I have struggled hours against the
TextView
before realizing thatBut this is:
In both cases, the link is recognized and styled accordingly.