LinearLayout with two children of equal width

后端 未结 5 556
北荒
北荒 2021-01-17 11:26

I\'m having some issues getting two children of a LinearLayout to have the same width. This is what I am getting:

5条回答
  •  囚心锁ツ
    2021-01-17 11:53

    this is you want:

    try this xml @boz:it will run in all size of layouts...!

    
    
    
        
        
    
        
    
            
            
    
            
            
    
            
            
        
    
    
    

    i take two linear layout with(50%,50%),and three child linear layout with(33.33%,33.33%,33.33%).among there three layouts, 2nd layout is your pinkone.

    if still any query,plz ask.

提交回复
热议问题