Android ImageView in ViewPager – Enables touch gesture scaling of images… here is a solution to the problem.
Android ImageView in ViewPager – Enables touch gesture scaling of images
I have a class based on ViewPager and ImageView as subclasses of it. In ImageView, I can intercept touch events and use the ScaleGestureDetector. The question is how to use gestures to achieve image scaling so that it works like any modern Android image viewer?
Thanks and regards
Solution
Check out this pinch & zoom tutorial
Here it has been answeredhttps://stackoverflow.com/a/5376296/313745