How to split the screen with two equal LinearLayouts?

前端 未结 6 1361
轻奢々
轻奢々 2020-12-04 11:08

Wanna to split a screen for my app with two LinearLayouts. What parameters should I use to make exact splitting in two equal parts - first LinearLayout on the top and the se

6条回答
  •  忘掉有多难
    2020-12-04 12:04

    In order to split the ui into two equal parts you can use weightSum of 2 in the parent LinearLayout and assign layout_weight of 1 to each as shown below

    
    
    
            
    
            
    
           
    
           
    
    
    
    

提交回复
热议问题