I get this String
from API which should be a HTML:
"<ul><li>Without Flavor &amp; Size</li><li>With Gallery Images<br></li><li>With Tag<br></li><li>With User Review</li><li>Inventory: In stock</li><li>Visibility: Enable</li><li>With Regular Price&nbsp; / Without Sale Price</li><li>Without Role based pricing</li><li>Without Upsells and Cross-sells Products</li><li>With one user review</li><li>Stock Availability: In Stock</li><li>Manage Stock: No<br></li></ul><p><br></p>"
Which is translated in a TextView like this when I use Html.fromHtml
:
My question is how to display this text like the web page (which should be an unorder list) in TextView.
I tried Html.fromHtml
, but it doesn't work and tried many external libs with no success.