BottomNavigationView overlapping FrameLayout in CoordinatorLayout

后端 未结 5 1478
花落未央
花落未央 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:59

    There is simple solution for your issue. That is to put marginBottom in FrameLayout on 56dp which is according to documentation height of BottomNavigationView. I'm not sure is it changable acording to mobile screens. Even the documentation says nothing about changing of height. And I used it in some of my apps and I didn't find that height of BottomNavigationView is changing. But just in case check. Hope this will help.

提交回复
热议问题