Skip to content Skip to sidebar Skip to footer

Android Webview Has Extra White Space At The Bottom

I'm using the following method with HTML to load a local image into webview void loadingImage(WebView mWebView){ mWebView.getSettings().setSupportZoom(false); mW

Solution 1:

make your WebView height wrap_content:

<WebView
    android:id="@+id/web_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

It works for me even in portrait mode :)

Solution 2:

Try this.

 <WebView
        android:id="@+id/web_view"
        android:scrollbarStyle = "insideOverlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

Post a Comment for "Android Webview Has Extra White Space At The Bottom"