Is it possible to load a URL in a WebView and resize it to fit the screen? I mean I want to make the WebPage small so that the user doesn\'t need to scroll. Is this possible
webview.setInitialScale(number);
where the higher 'number' is, the more zoomed in your page will be. start with lower numbers ( like 10) and adjust to taste
You can also try setting an layout algorithm for the same.It worked for me
webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
Use this code for resize your webview according to screen .
setScrollContainer(false);
Have you tried just calling WebView.zoomOut() repeatedly until it returns false
?
Also, I would note that this technique you want to use really relies on the web page being quite short. If the page is long and you zoom out to fit it entirely on screen, the user is going to need very good eye sight! ;)