ImageView Pinch-zoom Scale Limits and pan bounds
<p>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:
<a href="http://code.google.com/p/4chan-image-browser/source/browse/src/se/robertfoss/MultiTouch/TouchImageView.java?spec=svnd3e623ddeb6f9e97d9eba2c7aaa7c4567a3822b5&amp;r=d3e623ddeb6f9e97d9eba2c7aaa7c4567a3822b5" rel="nofollow">http://code.google.com/p/4chan-image-browser/source/browse/src/se/robertfoss/MultiTouch/TouchImageView.java?spec=svnd3e623ddeb6f9e97d9eba2c7aaa7c4567a3822b5&amp;r=d3e623ddeb6f9e97d9eba2c7aaa7c4567a3822b5</a></p>

<p>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'.</p>

<p>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?</p>
