Android: 2 relative layout divided in half screen

前端 未结 5 1854
星月不相逢
星月不相逢 2020-12-02 08:09

I tried many times to draw 2 Relative layout aligned horizontally and divided in half screen.

\"enter

5条回答
  •  萌比男神i
    2020-12-02 08:32

    You can put these 2 RelativeLayouts inside a LinearLayout with horizontal orientation, then use the weight for both RelativeLayouts. This will divide the LinearLayout in 2 equal parts.

    
        
       
       
       
    
    

提交回复
热议问题