Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set scrolling performance for webview?

I load url, for example mail.google.com, into webview in my app, and scrolling on web-page so slow! Tested on Samsung GalaxyTab 10.1, Motorola Droid X, Acer Liquid, etc. Why?

Parameters that I try use: webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); webView.setRenderPriority(RenderPriority.HIGH);

like image 575
imike Avatar asked Oct 19 '11 11:10

imike


People also ask

Is Webview slower than browser?

Web View is slower on both as compared to native android browser.

How do I disable scrolling in Webview?

setScrollContainer(false); Don't forget to add the webview. setOnTouchListener(...) code above to disable all scrolling in the webview.


1 Answers

add android:hardwareAccelerated="true" to the tag in your manifest.

like image 126
SteelBytes Avatar answered Oct 06 '22 18:10

SteelBytes