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
Post a Comment