Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fling and pinchzoom for an imageview in one activity

I have an Imageview(like a Magazine page).When i swype in to that image then i want the next image(page).Also want Zoom in and out option for this image.How i can achieve this?

Thanks

like image 954
Jackson Chengalai Avatar asked Feb 16 '12 10:02

Jackson Chengalai


2 Answers

Assuming you already researched separately on pinch-to-zoom and swipe gestures, you may want to impose limitations on useability. When the image is zoomed (occupying an area greater than the screen size), you should disable swipe detection, and enable it again once the image size is less than the screen size.

like image 85
josephus Avatar answered Sep 30 '22 15:09

josephus


I implemented such a library. There are still minor issues but it's functional and can be extended.

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

Enjoy.

like image 44
AlikElzin-kilaka Avatar answered Sep 30 '22 14:09

AlikElzin-kilaka