Hello guys .... How to Set BottomNavigationView in...
# android
k
Hello guys .... How to Set BottomNavigationView in AndroidX with No ActionBar
stackoverflow 5
google 4
No answer on stack overflow
c
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
@Casey Brooks not with
androidx
the error keeps coming from here
Copy code
setupActionBarWithNavController(navController, appBarConfiguration)
        navView.setupWithNavController(navController)
c
That looks like it has to do with the
NavigationComponent
(https://developer.android.com/guide/navigation), not the
BottomNavigationView
k
look at this
c
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
i have seen your PM ... but i think we jetpack .. this a
bug