default WebView Settings - Android User Interface

Android examples for User Interface:WebView

Description

default WebView Settings

Demo Code


//package com.java2s;

import android.webkit.WebSettings;
import android.webkit.WebView;

public class Main {
    /**/* w ww.j  av a2 s  .c o m*/
     * default WebView Settings
     * 
     * @param webView
     */
    public static void webViewSettings(WebView webView) {
        WebSettings settings = webView.getSettings();
        settings.setSupportZoom(false);
        settings.setJavaScriptEnabled(true);
        settings.setLightTouchEnabled(true);
        settings.setUseWideViewPort(true);
    }
}

Related Tutorials