문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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.

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

I recently implemented it and it works great

https://github.com/chrisbanes/PhotoView

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top