Put buttons at bottom of screen with LinearLayout?

前端 未结 9 1184
独厮守ぢ
独厮守ぢ 2020-11-28 18:25

I have the following code, how do I make it so that the 3 buttons are at the bottom?

    

        
9条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 19:24

    You can bundle your Button(s) within a RelativeLayout even if your Parent Layout is Linear. Make Sure the outer most parent has android:layout_height attribute set to match_parent. And in that Button tag add 'android:alignParentBottom="True" '

提交回复
热议问题