can WebView Zoom In - Android User Interface

Android examples for User Interface:WebView Zoom

Description

can WebView Zoom In

Demo Code


//package com.java2s;

import android.annotation.TargetApi;

import android.os.Build;

import android.webkit.WebView;

public class Main {
    @TargetApi(Build.VERSION_CODES.HONEYCOMB)
    public static boolean canZoomIn(WebView mWebview) {
        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
            // Use the API 11+ calls to disable the controls
            return mWebview.canZoomIn();
        } else {// w ww.  j  ava 2 s. c  o  m
            return false;

        }
    }
}

Related Tutorials