android - Links in TextView -
i need put link in textview
, have string contains tag <a href="link">text link</a>
, other text. problem if run project can see text it's not clickable. tried <b>
tag see if works , seems doesn't work too.
how can make work without linkify
usage?
thank all.
i have managed make work, after have found examples in android samples.
here code:
textview.settext(html.fromhtml( "<b>text3:</b> text " + "<a href=\"http://www.google.com\">link</a> " + "created in java source code using html.")); textview.setmovementmethod(linkmovementmethod.getinstance());
hope others...
Comments
Post a Comment