android – What are the approaches to displaying HTML?-ThrowExceptions

Exception or error:

I wondered what are the approaches to displaying HTML without using WebView, and are there any.
It’s seems for me that using WebView just for viewing content it’s a bit overkill and this can be done with more lightweight solution (tell me if I’m wrong). Quick googling show me that I can use Spans but they are very limited for rendering complex html content. Has anyone written custom solutions, or knows any libraries for this purpose?

How to solve:

You can use HTML class which is provided by Android, in case you don’t want to use Spannable String. This class processes HTML strings into displayable styled text.
You can find the methods as per your usage from this link

Leave a Reply

Your email address will not be published. Required fields are marked *