How to combine BottomAppBar + FAB with BottomNavigationView

后端 未结 6 1754
不知归路
不知归路 2020-11-30 00:29

I want to use the FloatingActionButton, along with its behaviour when anchored on a BottomAppBar, on top of a BottomNavigationView.

I came up with a rat

6条回答
  •  天命终不由人
    2020-11-30 01:14

    I tried to do this for several days and in the end I came to make a FAB with an empty BottomAppBar, on top of which a BottomNavigationView with a transparent background was superimposed.

    In my case, the code looks like this:

    
    
    
        
    
        
    
            
    
        
    
        
    
    
    

提交回复
热议问题