Zoomin in my webview will not work on a double tab. I am using Motorola Droid A855.
From some digging in the Android 2.0/2.1 source code, it seems like double-taps are ignored unless you turn on the webview's WebSettings' useWideViewport option:
mywebviewinstance.getSettings().setUseWideViewPort(true)
though this appears not to be documented anywhere that I can find, and has some other effects on the max-zoomed-out state of the WebView.
You can also always roll your own double-click handling with a GestureListener, too.
Have you explicitly enabled the zoom controls? They are disabled by default.
WebSettings webSettings = webView.getSettings();
webSettings.setBuiltInZoomControls(true);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.