NavigationUI.setupWithNavController(bottomNavigationView, navController)
When I run the app, the code is fine, but why it keeps showing compile error like this ?
The bottom navigation I use is in com.google.android.material:material
, and the bottom navigation in the param is android.support.design.widget.BottomNavigationView
. I know they are the same thing, but why it complains ?
To add a navigation drawer, first declare a DrawerLayout as the root view. Inside the DrawerLayout , add a layout for the main UI content and another view that contains the contents of the navigation drawer.
AppBarConfiguration.OnNavigateUpListener. Interface for providing custom 'up' behavior beyond what is provided by androidx.
Just restart Android Studio. The lint gets confused sometimes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With