Jackson Chengalai
Jackson Chengalai

Reputation: 3937

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

Upvotes: 8

Views: 4160

Answers (4)

DroidBoy
DroidBoy

Reputation: 162

I recently implemented it and it works great

https://github.com/chrisbanes/PhotoView

Upvotes: 0

AlikElzin-kilaka
AlikElzin-kilaka

Reputation: 36001

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.

Upvotes: 2

AlikElzin-kilaka
AlikElzin-kilaka

Reputation: 36001

Found this post on a a gallery (swipe between photos) with pinch-to-zoom.

Upvotes: 0

josephus
josephus

Reputation: 8304

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.

Upvotes: 3

Related Questions