Problem with extra space at bottom of Webview in Android

I am using Data Webview

to display HTML

. Sometimes it works fine, but most of the time it shows Extra White Space

at the bottom Webview

.

It could be Duplicate post, Source: Extra Space Issue at the Bottom of Android Web Browser.

I tried the same as in the post, but it doesn't work in my case.

String s="<head><meta name='viewport' content='target-densityDpi=device-dpi'/></head>";            
webview.loadDataWithBaseURL(null,s + htmlContent,"text/html" , "utf-8",null);

      

How can I prevent this problem?

Check the image below: enter image description here

+3


source to share





All Articles