RelativeLayout is taking fullscreen for wrap_content

前端 未结 6 926
闹比i
闹比i 2020-11-27 14:58

Why does FOOBARZ get layed out all the way at the bottom when no elements are layout_height=\"fill_parent\" in other words, all elements are wrap_content for he

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 15:35

    Dont use alight_Parent type properties with the child views

    You can use frame layout instead of RelativeLayout with respective gravity

        
         
    
        
    
    
    

提交回复
热议问题