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

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

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

 

        
4条回答
  •  逝去的感伤
    2021-02-03 22:06

    Basically the answer here is that there is no predefined value for what you are trying to achieve. The solution is to create a Matrix that fits to your needs and call setImageMatrix(matrix) on your ImageView.

提交回复
热议问题