Change the size of ImageView on zooming

后端 未结 8 2295
逝去的感伤
逝去的感伤 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:43

    If you wish to change the ImageView's size, you need to change its layoutParams, as I've demonstrated here. You can also change its scale as of Honeycomb.

    However, if you wish to just move a rectangle within the image, which also zooms nicely (like other apps that allow to crop), you can use a library like "cropper" or if you don't need the features there you can use a library like TouchImageView

提交回复
热议问题