How to show imageView full screen on imageView click?

后端 未结 10 647
暖寄归人
暖寄归人 2020-12-02 08:41

I am getting images from url and showing it on the imageView. This functionality is working properly. But I want that when I click on that image, then it must be full screen

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 08:53

    Use this property for an Image view such as,

    1) android:scaleType="fitXY" - It means the Images will be stretched to fit all the sides of the parent that is based on your ImageView!

    2) By using above property, it will affect your Image resolution so if you want to maintain the resolution then add a property such as android:scaleType="centerInside".

提交回复
热议问题