How to split the screen with two equal LinearLayouts?

前端 未结 6 1360
轻奢々
轻奢々 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:03

    I am answering this question after 4-5 years but best practices to do this as below

    
    
       
    
       
    
       
    
    

    This is right approach as use of layout_weight is always heavy for UI operations. Splitting Layout equally using LinearLayout is not good practice

提交回复
热议问题