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);
Written by Florian Mierzejewski
Related protips
1 Response
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#