alexvasilkov / GestureViews

ImageView and FrameLayout with gestures control and position animation
Apache License 2.0
2.38k stars 384 forks source link

Detect image zoom state #117

Closed mnnit-LaltuKumar closed 6 years ago

mnnit-LaltuKumar commented 6 years ago

Is there any way to detect the image or video is in zoom state?. I need to hide few views on zoom state but not getting any callback from the library.

alexvasilkov commented 6 years ago

You can use GesutreView.getController().addOnStateChangeListener(...) to receive state changes and get current zoom.

If you need to find out minimum (initial) zoom level you can use GesutreView.getController().getStateController().getMinZoom(State)