In my application I use a ScrollView. This ScrollView contain many Webview. I change the webview font size:
webView.getSettings().setTextSize(WebSettings.Tex
private void reloadWebView() {
// TODO Auto-generated method stub
postDelayed(new Runnable() {
@Override
public void run() {
clearView();
reload();
myWebView.getSettings().setJavaScriptEnabled(true);
requestLayout();
}
}, 10);
}
You can use this:
myWebView.loadUrl("about:blank");
I had the same problem and fixed it using code:
private void reloadWebView() {
postDelayed(new Runnable() {
@Override
public void run() {
clearView();
requestLayout();
}
}, 10);
}
Call it method when You have finished zooming. It will refresh web view and recalculate it size.
you might have to reload your webview with ie:
webview.loadUrl( "javascript:window.location.reload( true )" );