I am using webview
to load the responsive website but it shows the width outside to the mobile size.
I open the link in a mobile Chrome browser and it looks good...
I mean to say the width does not fit to screen size of mobile; it shows out of width.
I am also using these... for <viewport>
tag for controlling its presentation.
WebSettings settings = webview.getSettings();
settings.setJavaScriptEnabled(true);
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
Also I am using setInitialScale for webview render properly.
webview.setInitialScale((int) 1.0);
but I am getting the website load not responsive as according to size... it shows the width is outside to screen size... which comes with scroll
Application works fine in Lollipop, Marshmallow etc. But does not work in Jellybean etc.
But the Link works well with latest chrome in all devices but does not work in webview
.
I also set this....
<meta name="viewport" content="width=device-width, initial-scale=1">
Screenshot
May be you can achieve with
onPageFinished()
methodit worked fine with me time ago. Hope this helps...