Fling and pinchzoom for viewing images in one action

I have an Imageview (e.g. Magazine page). When I swim to this image, then I want the following image (page). You also need to use the zoom in and out option for this image. How can i achieve this?

thanks

+8
android android gesture
source share
4 answers

Assuming that you have already examined pinch-to-zoom and swipe gestures separately, you can impose restrictions on suitability. When the image is enlarged (occupying an area larger than the screen size), you must turn off the swipe detection and turn it on again when the image size is smaller than the screen size.

+3
source share

I implemented such a library. There are still minor issues, but they are functional and can be expanded.

Here's the fork on github: https://github.com/kilaka/ImageViewZoom

Enjoy.

+2
source share

I found this message in the gallery (swipe between photos) using the "shorten" button.

0
source share

I recently implemented it and it works great

https://github.com/chrisbanes/PhotoView

0
source share

All Articles