Android ImageView adjusting parent's height and fitting width

前端 未结 5 514
终归单人心
终归单人心 2020-11-28 02:06

Update : I solved this issue by using the method described in this answer

I\'m a bit stuck with this issue, which I think should be pretty simple.

5条回答
  •  攒了一身酷
    2020-11-28 02:21

    You're probably looking for android:adjustViewBounds="true" in xml or imageView.setAdjustViewBounds(true) in Java.

提交回复
热议问题