how to make bottom app bar or bottom navigation bar like google home app?

后端 未结 7 1472
悲&欢浪女
悲&欢浪女 2020-12-24 03:26

I want to make a layout like above. Can anyone help me how to do that? I have tried the new material bottom app bar. but I couldn\'t achieve this view.

7条回答
  •  半阙折子戏
    2020-12-24 04:20

    Finally got the solution. Just place bottomAppBar under your bottomNavigationView with transparent background. And add empty menu item to menu.xml to free space for the FAB.

    XML:

    
    
    
    
    
    
    
    
    
        
    
    
    
    
    

    Also you need to add an empty item in your menu.xml like this:

    
    

提交回复
热议问题