Example usage for android.webkit WebView getWidth

List of usage examples for android.webkit WebView getWidth

Introduction

In this page you can find the example usage for android.webkit WebView getWidth.

Prototype

@ViewDebug.ExportedProperty(category = "layout")
public final int getWidth() 

Source Link

Document

Return the width of your view.

Usage

From source file:com.facebook.react.views.webview.ReactWebViewManager.java

private WebView.PictureListener getPictureListener() {
    if (mPictureListener == null) {
        mPictureListener = new WebView.PictureListener() {
            @Override//w  w  w  . ja va  2 s  .  c  om
            public void onNewPicture(WebView webView, Picture picture) {
                dispatchEvent(webView, new ContentSizeChangeEvent(webView.getId(), webView.getWidth(),
                        webView.getContentHeight()));
            }
        };
    }
    return mPictureListener;
}