NightWhistler / HtmlSpanner

Android HTML rendering library with CSS support
http://nightwhistler.github.io/HtmlSpanner/
868 stars 209 forks source link

doesn't reflect color from style. #69

Open niraj-prajapati opened 4 years ago

niraj-prajapati commented 4 years ago

I need to display

    in my text view. the tags contain styles in it.

    The issue is, it is not using styles. Like, text color is black, but 3rd item has bold text for which color is different. But the text view shows whole text black. Other style parameters like padding are working as expected.

    <p style='margin-bottom:12px;margin-top:0;font-size:16px;font-family: sans-serif;'>some text</p>
    <ol style='margin:0;font-size:16px;font-family:sans-serif;padding-left:20px;'>
      <li style='margin-bottom:3px'>item 1</li>
      <li style='margin-bottom:3px'>item 2</li>
      <li style='margin-bottom:3px'>item 3 <b style='color:#0C0F41'>bold</b></li>
    </ol>

    Please help me to resolve this issue.