How to align linearlayout to vertical center?

后端 未结 8 1766
你的背包
你的背包 2020-12-08 12:43

I\'m trying to align LinearLayout\'s vertical center which shows following pic (skycolor border) to delete button\'s vertical center.

so I set the gravity of id:grou

8条回答
  •  伪装坚强ぢ
    2020-12-08 13:25

    Use layout_gravity instead of gravity. layout_gravity tells the parent where it should be positioned, and gravity tells its child where they should be positioned.

    
    

提交回复
热议问题