What am I trying to implement?
A gallery of images using ViewPager. I choose this option because the smooth transition between images (I\'m
If you want to use a Matrix with an ImageView to transform the image, you need to change the scale type to ScaleType.Matrix
, otherwise there will be no effect. The default scale type is ScaleType.FIT_CENTER
and so it will ignore the matrix.
Regarding your original task, if you get this working you may find that the touch gestures on the ImageView will interfere with the scrolling of the ViewPager. You will definitely have problems supporting single-touch drag because this directly corresponds with the natural ViewPager swipe motion to go to the next view.