Reputation: 665
I have a list of webviews and I need to know when the user changes the zoom level in one webview in order to apply the new zoom in other webviews.
Currently I added the OnZoomListener interface and I have onZoom(int i)
, but it's called only when zoom is changed from zoom controls and I need to detect zoom changes when user uses fingers to change zoom.
Upvotes: 1
Views: 1335
Reputation: 1746
setLoadWithOverviewMode(boolean) loads the WebView completely zoomed out and setUseWideViewPort(boolean) makes the Webview have a normal viewport. So use these methods to evaluate.
http://developer.android.com/reference/android/webkit/WebSettings.html
Upvotes: 1