fresco
fresco copied to clipboard
How can I reset zoom in ZoomableDraweeView
I need to reset zoom programmatically to scale 1 for zoomed image in ZoomableDraweeView.
You need to get the ZoomableController from the ZoomableDraweeView after which you can do various things with it. If you haven't set a custom ZoomableController and are just using the one created automatically by the view, it will be an instance of AnimatedZoomableController. Btw, check out zoomToPoint method too.
AnimatedZoomableController zoomableController = (AnimatedZoomableController) zoomableDraweeView.getZoomableController();
zoomableController.reset();
Thanks a lot.