How to center the content inside a linear layout?

前端 未结 6 1995
无人共我
无人共我 2020-12-04 08:07

I\'m trying to center an ImageView inside a LinearLayout horizontally and vertically, but I just can\'t do it. The main reason why I\'m not using a

6条回答
  •  醉梦人生
    2020-12-04 09:02

    I tried solutions mentioned here but It didn't help me. I mind the solution is layout_width have to use wrap_content as value.

    
    

提交回复
热议问题