Android Layout: width half of parent

前端 未结 5 464
野的像风
野的像风 2021-02-02 06:36

I have a very simple layout that I can\'t make it looks like I want. It\'s a LinearLayout with a button and a Switch. I want them to show one above the other, but I want their w

5条回答
  •  执笔经年
    2021-02-02 07:00

    One possible way is to have a master horizontal LinearLayout that splits the width to 2, and inside it have the vertical layout

        
            
    
                
    
                

提交回复
热议问题