How to create a Navigation Drawer and Bottom Bar in the same app

前端 未结 4 1519
鱼传尺愫
鱼传尺愫 2021-02-03 10:49

I am creating an app, and I want to have a Navigation Drawer and a Bottom Bar in the app.

I think that I am going for a good way, but I Can do that the Navigation Drawer

4条回答
  •  星月不相逢
    2021-02-03 11:29

    There are two possible solutions to your problem.

    1. It's quite easy. Give your BottomNavigationView a certain height, let's say 56dp and then give this as marginBottom of NavigationView.
    2. Keep it as it is. Just assign your DrawerLayout's property layout_above="@+id/bottom_navigation.

提交回复
热议问题