Java – Android ImageView in ViewPager – Enables touch gesture scaling of images

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

Related Problems and Solutions