Photoview: Set min and max zoom/scale level

Created on 21 Dec 2012  ·  3Comments  ·  Source: Baseflow/PhotoView

First: great library!

Is there a possibility to set the min and max zoom level? Currently it reverts to a min zoom level defined by the views bounds.

Most helpful comment

PhotoViewAttacher photoView = new PhotoViewAttacher(img);
photoView.setMaximumScale(10);

All 3 comments

Yeah, it seems the max zoom level is the original size of image.
It'd be great if we can zoom image double size...

PhotoViewAttacher photoView = new PhotoViewAttacher(img);
photoView.setMaximumScale(10);

We can use also PhotoView#setMaximumScale()

Was this page helpful?
0 / 5 - 0 ratings