9prh-w
Last Updated: February 25, 2016
·
7.669K
· florianmski
Me

WebView and Hardware acceleration

WebView does not work really well with hardware acceleration (available since Honeycomb / 3.0).
To avoid this issue you can deactivate hardware acceleration in your manifest (for the all app or just the activity where you have your webview).
You can do it programmaticaly too like this :

//honeycomb (3.0) and higher
if (Build.VERSION.SDK_INT >= 11)
        webview.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
Say Thanks
Respond

1 Response
Add your response

425

I have a lot of performances issues on HTML5/Canvas with WebView since Android 4.x
Your tips help a little, but maybe some other optimisation will be good.

over 1 year ago ·