A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges.
1.37k
stars
109
forks
source link
Using onCreateOptionsMenu for setupWithNavController creates a menu on the toolbar. #69
Open
LiagiKhambow opened 1 year ago
According to the demo code provided int the NavControllerActivity we use onCreateOptionsMenu like this:
override fun onCreateOptionsMenu(menu: Menu?): Boolean { menuInflater.inflate(R.menu.clock_tabs, menu) bottom_bar.setupWithNavController(menu!!, navController) return true }
The code workks but this also creates a menu on the right end of the toolbar. How do I remove that?