Change the size of ImageView on zooming

后端 未结 8 2475
逝去的感伤
逝去的感伤 2021-02-14 01:15

I am using chrisbanes PhotoView to implement pinch zoom..Image zooms on pinching and double tapping but i can\'t see that my image streched to full screen on zooming..on zooming

8条回答
  •  没有蜡笔的小新
    2021-02-14 01:59

    Better try a different approach if youre stuck

    You can find below a link to a class created by Jason Polites that will allow you to handle pinch zooms on custom ImageViews: https://github.com/jasonpolites/gesture-imageview.

    Just include this package into your application and then you will be able to use a custom GestureImaveView in your XML files:

    
    
    
    

    This class handles pinch zooms, but also double taps.

    Answer credit goes to Yoann :)

提交回复
热议问题