I'm trying to display HTML
content in a native page. I'm successfully parsing
the HTML
content and showing it in a Textview
. But, Most of HTML styles are not applied to the Textview
. For example:
<p style=\" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;\">
Here color
, font-amily
, font-size
and some other attributes are not working.
I used Html.fromHtml(html)
method for setting the html content.
Is there a way to extend HTML
class and add these styles to it?
Is there any other alternatives.