Remove White Space in WebView
I think it's scrollBar;
<WebView android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
android:id="@+id/mainWebView">
</WebView>
mainWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
to
mainWebView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);
Unwanted Top and Bottom White Space in Android Webview after keyboard disappears
Thanks for the Playground Manoj.
It looks like there was percentage height and width in html page and everytime user moves out from html page it re adjusts itself to available space and sometimes squeezes as well.
I was using the webview inside the GridLayout and setting the height and width 100%
to that GridLayout solved my problem.
Related Topics
Android Tablayout Android Design
Onclick Method Not Working Properly After Nestedscrollview Scrolled
What Are Intent-Filters in Android
Change Button Text and Action - Android Development
Add Margin Between a Radiobutton and Its Label in Android
How to Change Option Menu Icon in The Action Bar
Isvalidfragment Android API 19
Install_Failed_Cpu_Abi_Incompatible on Device Using Intellij
Stuck with Gradle Build Running
How to Change Android:Windowsoftinputmode Value from Java Class
Writing Some Characters Like '<' in an Xml File
Not Seeing Nexus7 in Eclipse's Android Devices
Should I Use Getapplicationcontext or Activity.This in a Long Running Asynctask
How to Place App Icon on Launcher Home Screen
Service Intent Must Be Explicit: Intent
Android, How to Exec a SQL File in Sqlitedatabase
Detecting Webview Error and Show Message
How to Import an Existing Project from Github into Android Studio