Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android webview pinch zoom Problem

Hi guyz im able to pinch zoom the image in webview its working properly. Zoom in is working fine but problem is zoom out. Image goes small and small. How can i limit zoom out to the size of the image?

like image 652
GTID Avatar asked Sep 16 '11 11:09

GTID


People also ask

How do I zoom out in Webview Android?

webview. getSettings(). setLoadWithOverviewMode(true); This will cause the webview to be zoomed out initially.

How do I pinch zoom with my mouse on Android?

Press and hold Ctrl and press and hold left mouse and while doing that move your mouse. With a trackpad: Press and hold Ctrl and press and hold your trackpad and move with a finger to the LEFT and RIGHT (not up and down).


1 Answers

    mWebView.getSettings().setSupportZoom(true);  
    mWebView.getSettings().setBuiltInZoomControls(true);
like image 194
Samir Mangroliya Avatar answered Oct 07 '22 21:10

Samir Mangroliya