Gallery of images using ViewPager + zoom in ImageViews

前端 未结 1 1805
别跟我提以往
别跟我提以往 2020-12-28 08:17

What am I trying to implement?

A gallery of images using ViewPager. I choose this option because the smooth transition between images (I\'m

相关标签:
1条回答
  • 2020-12-28 09:01

    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.

    0 讨论(0)
提交回复
热议问题