Webview android does not load css image

0

I am loading an html page with a css in a webview, all files are local and are in the same folder. It is working normally on my Motorola Moto X 2 device and on my Galaxy Tab 10 tablet, but on Galaxy Tab 4 with version 4.4.2 the image is not being rendered by the css.

Command that I use to load the page:

webView.loadUrl(Uri.fromFile(index).toString());

Where index is the index.html file for the folder;

CSS that loads the image:

.bt_play{background:url('ico_play.png') no-repeat right;   padding: 20px 75px 20px 5px!important; display:table; float: right;}
.bt_play p{font-size: 1.7em!important;}

I have already used various techniques and codes to make the image appear on this specific tablet, but nothing works ... Anyone have an idea?

    
asked by anonymous 26.08.2015 / 16:53

1 answer

1

You can configure the best hardware performance with:

webview.getSettings().setRenderPriority(RenderPriority.HIGH);
webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);

Or in the manifest put:

android:hardwareAccelerated="true"
    
27.08.2015 / 16:02