android - Why TextView color change to blue when parsing it a string value from Html.fromHtml() -


i have html string being fetch server. i'm showing in textview this:

detailtext.settext(html.fromhtml(offer.getdetaildesc())); 

now activity in textview place has black background , have set textview color white in xml. when set text of textview, color changes blue. why happening? also, there no links or color attributes in html tags string , want show text in white.

thanks

a workaround:

  1. download html text.
  2. use string class methods or matcher android class find patterns <font color.*> remember take shortest match always.
  3. crop string , pass html.fromhtml() method
  4. apply textview.

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -