I have an initialized WebView with the following code:
_webView.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
while (view.zoomOut());
}
_webView.loadURL("path/to/image.png");
But this does not work. The WebView zooms out while loading. But when it is finished, it will zoom in.
Is there any other way to zoom out completely after a page (I use the WebView to display an image) is loaded?
Try this piece of code:
Hope this helps.