I have String with ul and li in it. And I am trying to show them in HTML formatting in textview. textView.setText(Html.fromHtml(myHtmlText));
But tex
Tags Supported in String Resources
Tags in static string resources are parsed by android.content.res.StringBlock, which is a hidden class. I've looked through the class and determined which tags are supported:
(supports attributes "href")
(supports attributes "height", "size", "fgcolor" and "bicolor", as integers)
-
Tags Supported by Html.fromHtml()
For some reason, Html.fromHtml() handles a different set of of tags than static text supports. Here's a list of the tags (gleaned from Html.java's source code):
(supports attribute "href")
(supports attributes "color" and "face")
(supports attribute "src". Note: you have to include an ImageGetter to handle retrieving a Drawable for this tag)
see this link for more details