Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.webkit.WebView;
import android.widget.ZoomButtonsController;
import java.lang.reflect.Method;

public class Main {
    private static void getControlls(WebView pWebView) {
        try {
            Class webview = Class.forName("android.webkit.WebView");
            Method method = webview.getMethod("getZoomButtonsController");
            ZoomButtonsController zoomController = (ZoomButtonsController) method.invoke(pWebView);
            if (zoomController != null) {
                zoomController.setVisible(false);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}