How to combine BottomAppBar + FAB with BottomNavigationView

后端 未结 6 1764
不知归路
不知归路 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:10

    Well you can treat BottomAppBar as Toolbar, which means that, this class extends ViewGroup so you can add relative layout, constraint layout etc inside BottomAppBar tag. Here is fragment of code that will show 2 buttons inside BottomAppBar.

    
    
            
    
                

提交回复
热议问题