android:layout_height 50% of the screen size

前端 未结 10 917
无人共我
无人共我 2020-12-23 16:29

I just implemented a ListView inside a LinearLayout, but I need to define the height of the LinearLayout (it has to be 50% of the screen height).



        
10条回答
  •  死守一世寂寞
    2020-12-23 16:57

    This is my android:layout_height=50% activity:

    
    
    
        
        
    
        
        
    
    
    

    style:

    
    

提交回复
热议问题