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 - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -