How do I remove extra space above and below imageView?

后端 未结 11 1585
别跟我提以往
别跟我提以往 2020-12-08 05:57

I have a really simple image within a RelativeLayout and for some reason I am getting extra spacing on the top and bottom which I can\'t remove. How can I clear

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 06:32

    Your problem is probably that you have no scale type set... Add it to the XML for the ImageView, "fitCenter" should be correct, but there are others, check: ScaleType.

    
    

提交回复
热议问题