• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying HTML content in TextView

 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to display HTML content in text view.And Android has one very good method for this. Html.fromHtml. This method takes html input and returns output in String format.
But there is small problem with this.It removes all the Html Tags. I want some of tags like bold and font color etc. For this they have same method with different list of argument. But doing this is bit complecated.

I need some better way. Please Help.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!