Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag limits for zoom view content #5

Open
GoogleCodeExporter opened this issue Mar 31, 2016 · 1 comment
Open

Drag limits for zoom view content #5

GoogleCodeExporter opened this issue Mar 31, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

1. Set max zoom factor to 4
2. Double click the image to enlarge to maximum
3. Scroll the image inside the videw

Scrolling should be limited to the physical view bounds of the image, so for 
example, if the top of the enlarged image reaches the physical view top zooming 
should stop.

I tried various options, however I could not get any of these solutions working 
with your implementation. Could you provide me with a solution?

http://stackoverflow.com/questions/7532128/how-to-keep-an-image-inside-the-scree
n-limits-while-using-pinch-zoom-and-drag-ge

http://stackoverflow.com/questions/4227451/android-imageview-setting-drag-and-pi
nch-zoom-parameters

Original issue reported on code.google.com by [email protected] on 4 Sep 2013 at 8:46

@GoogleCodeExporter
Copy link
Author

hi
this was a known issue
i just commited a fix which solves this problem, you can checkout new code and 
it should work fine
just remember to set probper bounds to content inside ZoomView! for ImageView 
you should set proper scaling type and set adjustViewBounds=true

Original comment by [email protected] on 16 Jan 2014 at 11:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant