How to align linearlayout to vertical center?

后端 未结 8 1783
你的背包
你的背包 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:35

    You can change set orientation of linearlayout programmatically by:

    LinearLayout linearLayout =new linearLayout(this);//just to give the clarity
    linearLayout.setOrientation(LinearLayout.VERTICAL);
    

提交回复
热议问题