Search code examples
androidandroid-volleypinchzoomtouchimageviewnetworkimageview

Pinch and double tap zoom for NetworkImageView


I am trying to implement pinch zoom and double tap feature on NetworkImageView inside a ViewPager. I referred to this tutorial: http://www.androidhive.info/2013/09/android-fullscreen-image-slider-with-swipe-and-pinch-zoom-gestures/

Images are loading fine using Volley and NetworkImageView. Even the pinch zoom is working but its not smooth at all. After zooming, the current image is zooming under the next and previous image in ViewPager. Also, the previous image zoom is not resetting.

I tried using Mike Ortiz's new version of TouchImageView code but images are not loading for NetworkImageView.

So,

  • Do I need to use new version of TouchImageView for better pinch zoom experience and enabling double tap?
  • If yes, will it work for NetworkImageView?
  • How to fix the issue of zooming under next and previous image?
  • How to reset the zoom of previous image?

Thanks.


Solution

  • Fixed it by using ImageView along with new version of TouchImageView.