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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -