Hello,
I'm using a WebView and I'd like to keep zoom value, after the user changed 
it using pinch-to-zoom or visual controls. To do it, I'm restoring zoom 
value in this way:
public void onPageFinished(WebView webView, String url) {
webView.loadUrl("javascript:(function() { " + 
"document.getElementsByTagName('body')[0].style.zoom='" + 
zoomValueToRestore + "'; })()");
}

Anyway the problem is that after using this code, you can't zoom OUT 
anymore (but you can zoom IN). For some reason the zoomValueToRestore 
becomes the new minimum-zoom-value. Why?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to