Android ImageView adjusting parent's height and fitting width

前端 未结 5 519
终归单人心
终归单人心 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:38

    I think you should change your imgV width to "match_parent"

    You should change the scale type to imgV.setScaleType(ImageView.ScaleType.CENTER_INSIDE);

提交回复
热议问题