NightWhistler / HtmlSpanner

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

Css issue #29

Open KhashayarMonem opened 10 years ago

KhashayarMonem commented 10 years ago

i'am working on epub reader based on epublib and using HTMLSpanner for rendering epub to android textview.

but css stiles and images didn't applied when showing in text view i used a path corrector to correct image and css link paths, then image issue solved but css stiles still doesn't apply to text view.

what should i do ? thank you.

NightWhistler commented 10 years ago

How are you loading the CSS files from the epub?

The basic HtmlSpanner doesn't know anything about epub and how to find the proper streams inside an epub file. It only understands HTML rendering.

This means that you will need to write your own code to load the CSS files, or use the code from PageTurner, but that is licensed under the GPL.