https://kotlinlang.org logo
Title
k

Kevin Janvier Chinabalire

09/06/2019, 6:53 PM
Hello guys .... How to Set BottomNavigationView in AndroidX with No ActionBar
:stackoverflow: 5
:google: 4
No answer on stack overflow
c

Casey Brooks

09/06/2019, 8:06 PM
BottomNavigationView
has nothing to do with the Toolbar. If you don’t want the toolbar, use a
.NoActionBar
theme as your app theme’s parent, such as
@style/Theme.AppCompat.Light.NoActionBar
. And then just set the
BottomNavigationView
as normal
k

Kevin Janvier Chinabalire

09/06/2019, 8:23 PM
@Casey Brooks not with
androidx
the error keeps coming from here
setupActionBarWithNavController(navController, appBarConfiguration)
        navView.setupWithNavController(navController)
c

Casey Brooks

09/06/2019, 8:25 PM
That looks like it has to do with the
NavigationComponent
(https://developer.android.com/guide/navigation), not the
BottomNavigationView
k

Kevin Janvier Chinabalire

09/06/2019, 8:29 PM
look at this
c

Casey Brooks

09/06/2019, 8:46 PM
I responded to you PM, but your notifications are turned off. Most of the methods to set up the navController work with a
Toolbar
, but you might look into this one that doesn’t seem to need it https://developer.android.com/reference/androidx/navigation/ui/NavigationUI.html#setupWithNavController(com.google.android.material.navigation.NavigationView,%20androidx.navigation.NavController)
k

Kevin Janvier Chinabalire

09/06/2019, 8:49 PM
i have seen your PM ... but i think we jetpack .. this a
bug