ANDROID : split the screen in 2 equals parts with 2 listviews

后端 未结 3 1536
再見小時候
再見小時候 2020-11-30 05:27

I\'m trying to put 2 listviews into my layout. The problem is that I don\'t know the size of each listview in advance. The first listview could have a few items (0, 1, 2 up

3条回答
  •  天涯浪人
    2020-11-30 05:44

    I simply had to "encapsulate" my 2 listviews into 2 separate linearlayouts => these 2 linearlayout have a weight of 1 :

        
    
                    
    
                    
        
    
    
    
                
    
                
    
    

提交回复
热议问题