How to create an ImageView that fills the parent height and displays an Image as big as possible?

前端 未结 4 905
情话喂你
情话喂你 2021-02-03 21:41

I have an ImageView that is defined in the following way:

 

        
4条回答
  •  耶瑟儿~
    2021-02-03 22:24

    You can change scale type to fitXY via call to

    imageView.setScaleType(ScaleType.FIT_XY);
    

提交回复
热议问题