Posts

Showing posts with the label hyperlink

Android - Enabling only URL link, but disabling the others when it touches something non-URL link in TextView

Image
Android - Enabling only URL link, but disabling the others when it touches something non-URL link in TextView I am implementing a board. And I want the View that the users can include links. Now, my TextView has android:autoLink="web" android:autoLink="web" attribute. However, It works a bit differently from what I expected. As you can see, even though I click the empty area(+lines in the picture), the TextView is detecting the link(blue highlight) and If I let my finger go, a web browser opens and it goes to the URL. That's not what I want. I just want it to work when I ONLY click the link. (Not other non-URL text nor empty area) and I DON'T KNOW what users write, In other words, I can't preset specific links nor guess what URLs would be. It must be applied to all the links even that I don't know. The number of links can be more than ONE. And I don't know how many links would be included in the user's content. Somebody tells me I need to mak...