Pinch and double scaling for NetworkImageView

I am trying to implement zoom and double click functionality on NetworkImageView inside ViewPager. I mentioned 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 zoom zoom works, but it is not smooth. After scaling, the current image is scaled to fit the next and previous image in the ViewPager. In addition, the previous image scaling is not reset.

I tried to use Mike Ortiz new version of TouchImageView code, but images are not loading for NetworkImageView.

So,

  • Do I need to use a newer version of TouchImageView for a better scaling experience and double tap capability?
  • If so, will it work in NetworkImageView?
  • How do I fix the scaling problem in the next and previous image?
  • How to reset to enlarge the previous image?

Thank.

+3


source to share


3 answers


Fixed it with ImageView along with new version of TouchImageView.



-3


source


Use this NetworkImageView instead of the NetworkImageView from volley: https://github.com/geeknizer/Volley-Flickr-Gson-List-GridView-example/blob/master/src/com/androidng/flickr/view/NetworkImageView.java



It's the same but with fixes!

+2


source


It's doable!
I used the codebase from android image scaling . All you have to do is ImageViewTouchBase.java

replace the class extension with NetworkImageView

. Works like a charm.
You can change the function onDoubleTap

to have only one level up / down function.

+1


source







All Articles