Android set html content to textView with HtmlTextView class -


today i'm find class define html tag android widgets. after download , create new instance can not set textview. i'm search in class document can not find document how set class result textview:

htmltextview text = new htmltextview(this); text.sethtmlfromstring("<h2>hello wold</h2><ul><li>cats</li><li>dogs</li></ul>", true);  /* set text content  */ content.settext ( text ); 

use this

content.settext(html.fromhtml("your html string")); 

Comments

Popular posts from this blog

javascript - Wordpress slider, not displayed 100% width -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -