I have a link inside a Textview, when i'd clicked it work(open the link) but do not highlight color arround the link before open.
that's my code:
text.setText(Html.fromHtml("<a href='http://google.com'>Google</a> example of link");
I have a link inside a Textview, when i'd clicked it work(open the link) but do not highlight color arround the link before open.
that's my code:
text.setText(Html.fromHtml("<a href='http://google.com'>Google</a> example of link");
Add this line to make it work -
htmlContent.setMovementMethod(LinkMovementMethod.getInstance());
You can try to use android:textColorHighlight="yourColorHere"
on your TextView