Android examples for User Interface:WebView Zoom
Sets the WebView supports zoom and sets whether the zoom mechanism built into WebView is used.
//package com.java2s; import android.webkit.WebSettings; import android.webkit.WebView; public class Main { /**/*from ww w.ja v a2s.c o m*/ * Sets the WebView supports zoom and sets whether the zoom mechanism built into WebView is used. * @param webview * @param showControler */ public static final void supportZoom(WebView webview, boolean showControler) { WebSettings ws = webview.getSettings(); ws.setSupportZoom(true); // double-tap zoom and keep pinch ws.setBuiltInZoomControls(showControler); } }