BottomNavigationView overlapping FrameLayout in CoordinatorLayout

后端 未结 5 1476
花落未央
花落未央 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 23:05

    Good a better solutions without having to hardcode the bottomView

    You can put it inside a ConstraintLayout and make the height of the content 0dp and also set it's bottomToTop="@id/bottomViewId" or whatever is the Id you put to the bottomViewNavigator.

    Here is an example.

    
    
    
        
    
        
    
    

提交回复
热议问题