Put buttons at bottom of screen with LinearLayout?

前端 未结 9 1188
独厮守ぢ
独厮守ぢ 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:06

    Just add layout_weight="1" to in your linearLayout which having Buttons.

    Edit :- let me make it simple

    follow something like below, tags name may not be correct, it is just an Idea

    // Top Parrent LinearLayout
         // this layout will fill your screen.
         // this layout gonna take lower part of button height of your screen
    
     TOP PARENT CLOSED
    

提交回复
热议问题