Change the size of ImageView on zooming

后端 未结 8 2300
逝去的感伤
逝去的感伤 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 02:01

    It is because the ImageView has a view height of "wrap_content". Change it to "match_parent" and set the scaleType of the image to be "centerInside" to fix your problem.

提交回复
热议问题