Can't get proper layout with “fill_parent”

前端 未结 4 437
一向
一向 2020-12-31 14:26

I\'m trying to create this simple layout in Android.

\"enter

A

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-31 14:56

    Here's my answer. I just set the layout_weight on B to be 1. Evidently, layout_weight is something like a percentage-based layout approach. I don't know how it works, but here is my finished product, looking great:

    
    
    
        
    
        
    
            
    
            
        
    
        
    
    

提交回复
热议问题