I am using an XML file to display an “About” page in my app. This xml file is in the assets folder and is displayed using a WebView layout.
I want to use css to set a background image for this xml file. The image is in the drawable-mdpi folder. Is there a way that I can access that image?
What I mean is something like this? (or an alternative, ofcourse)
<style type="text/css">
body{
background-image:url('path-to-image-in-drawable-mdpi');
}
//...
</style>
Thanks for your help 🙂
It works if you write