Android strings xml file formatting -


hy! working on android app , want format text textview shows text on contact on website, dont know how format in strings.xml file. have tried basic html formatting putting <br> tag new row , <a> tag email adresses , web site, nothing change. how format ? can large strings saved strings.xml ?

http://visitsplit.com/#pages?page=409

you can use \n new lines.

further, can use html.fromhtml create spanned have basic formatting - bold, italic, links, etc.

you need override movement method make links operational:

textview.setmovementmethod(linkmovementmethod.getinstance()); textview.setlinksclickable(true); 

Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -