I am using this code and it works exactly as I want. But I have to implemented another feature on double tap and would like to disable the double tap zooming (but keeping the pinch zoom feature).
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.NORMAL);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setSupportZoom(true);
webView.setInitialScale(1);
Tried to manually calculate the scale, with no luck (which feels complicated for this).
Disable Double Tap Zoom/Unzoom on a webview
Android Webview – Webpage should fit the device screen
Is there a way to use the setUseWideViewPort and Zoomcontrolls but only disable or override the double tap zoom?
Best Answer
best solution, just extend your WebView from MyWebView