BottomNavigationView overlapping FrameLayout in CoordinatorLayout

后端 未结 5 1482
花落未央
花落未央 2021-02-12 22:39

The following is my layout xml. The problem now is that the BottomNavigationView is overlapping the FrameLayout. I wanted the FrameLayout to stretch to the top of the BottomNavi

5条回答
  •  野的像风
    2021-02-12 22:51

    Place CoordinatorLayout and BottomNavigationView inside RelativeLayout

    with BottomNavigation android:layout_alignParentBottom="true" and CoordinatorLayout layout above with android:layout_above="@+id/{BottomNavigationView-ID}"

    please check below layout

    
    
    
    
    
    
    
    
        
    
            
    
                
    
                    
    
                        
    
                        
    
                        
    
                        
    
                    
    
                
    
                
    
            
    
            
    
        
    
        
    
    

提交回复
热议问题