How to give autolink for some part of textview ? For example : My text inside TextView is “Please click here to open this webpage”. I want to show link for only the text “here”. And I should open that webpage onclick of the text “here” but not on the anywhere of TextView.
Share
Put a String in string.xml
And you can use it in textView like this:
EDIT
For some reason above code does not work properly. So, add below code also,
Important: Don’t forget to remove
autoLink="web"if you are callingsetMovementMethod().