Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide the zoom control in an Android webview?

As per the title, how I can hide the zoom control in a webview?

like image 243
magemello Avatar asked Dec 09 '11 00:12

magemello


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.

What are two methods used for zoom control?

Important Methods of Zoom Controls ZoomControl zoomControls = (ZoomControls) findViewById(R. id. simpleZoomControl); show(): This method is used to show the zoom controls on the App UI.


1 Answers

You should use WebSettings and set setDisplayZoomControls to false. This will allow the user to still use the pinch to zoom but the controls will not be displayed.

    myWebView.getSettings().setDisplayZoomControls(false);
like image 122
Bobbake4 Avatar answered Oct 08 '22 17:10

Bobbake4