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

后端 未结 3 1529
再見小時候
再見小時候 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:56

    
    
            
    
                
                    
            
    
            
    
                
                
    
            
        
    

    Create a parent Linear Layout, define a weightsum and split that into two different relative layouts each of weight equals half of total weightsum because in relative layout things are managed easily and properly .I hope this works for you

提交回复
热议问题