Hi,
I wanted to create an gallery with images. The images within the gallery should be zoomable and pannable. I could able to pinch-zoom an image but could not able to set zoom limits and prevent the image from being panned off the screen. I used the following code to zoom an image: http://code.google.com/p/4chan-image-browser/source/browse/src/se/robertfoss/MultiTouch/TouchImageView.java?spec=svnd3e623ddeb6f9e97d9eba2c7aaa7c4567a3822b5&r=d3e623ddeb6f9e97d9eba2c7aaa7c4567a3822b5
First approach : I used TouchImageView to supply images to gallery, this allows me to pinch zoom but can't scroll the gallery. i.e I cant differentiate between 'single tab event' and 'tab to scroll event'.
Second approach : Used ImageView to supply images to gallery, and if user click on any of the gallery item display the selected image in TouchImageView, where user can Pinch-Zoom an image. But this also prevent me from scrolling the gallery view. And also how to set zoom limits and pan bounds on selected image?
Please Help.
Thanks!