I want to set a text with a clickable link in my TextView.
Expected output: More info can be found here.
The String looks like this:
String text = "More info can be found <a href='http://google.com'>here</a>."
I set it to the TextView like this
textView.setText(Html.fromHtml(text));
textView.setMovementMethod(LinkMovementMethod.getInstance());
This should work as is but since my Textview is in a Fragment within a ViewPager clicking it won't do anything.
Anyone has experienced the same issue?