Questions tagged [android-navigationview]
One of the features of Android Design Support Library which is bringing a number of important material design components to all developers and to all Android 2.1 or higher devices. Navigation Drawer enables your app having easy UX to navigate, particularly for first time users. NavigationView provides the framework for developers easier to establish Navigation Drawer UI.
432
questions
0
votes
1
answer
27
views
How to make a floating NavigationView in Android
I want to replicate the menu that Google has in its applications, but I don't know if there is a component like NavigationView and DrawerLayout that allows this menu to be made but that is not fixed ...
1
vote
1
answer
135
views
Navigate to any module from any module in 6 module multi module android project
I have 6 modules each module is kind of different app but i make 5 module as a library module and 6th module as the application module to launch activity and other
all module work on one activity and ...
0
votes
1
answer
30
views
Android Navigation Drawer Item Click Listener not working
Every time I click on the Navigation Drawer item, it closes and is not redirected to the intent activity.
/* MainActivity.java */
NavigationView navigationView = findViewById(R.id.navigationview);
...
0
votes
1
answer
46
views
How to navigate to root Bottom Navigation Menu Item on Android
I'm developing a Android app with Navigation Component with Fragments and a NavGraph.
My app has a BottomNavigationView with Menu Items like described in "Tie destinations to menu items"
...
0
votes
0
answers
42
views
Issue in Drawer layout & Navigation View with navigation(navGraph) while using navigate in NavController
Am using Drawer layout & Navigation View with navigation(navGraph), navigation works fine with drawer item. The issue came while I was trying to navigate the fragment on button click by using ...
0
votes
1
answer
78
views
How do I prevent checked menu items in a NavigationView from appearing with bold text?
As of version 1.8.0-alpha03 of the Material Components for Android library, checked menu items in a NavigationView are rendered with bold text. I have created this minimal application to demonstrate ...
0
votes
1
answer
98
views
App crash after upgrade navigation from 2.3.0 to 2.4.1
My app use dynamic-feature-module
upgrade from
//Navigation Component
const val ANDROIDX_NAVIGATION_UI = "androidx.navigation:navigation-ui:2.3.0"
const val ANDROIDX_NAVIGATION_UI_KTX = &...
0
votes
1
answer
54
views
Android BottomNavigation startDestination looping onCreate Function
I have a very simple App with a MainActivity that holds a FragmentContainerView and a BottomNavigationView.
In the FragmentContainerView i want to display one of three Fragments. The Fragments only ...
3
votes
2
answers
3k
views
How to set title and buttons in TopAppBar of child screens in Android Jetpack Compose
I have an app that is using Top App Bar and bottom navigation.
Each bottom tab has its own navigation with NavHostController.
On my Home tab, I have a NavHostController like so
fun ...
0
votes
1
answer
90
views
How to take image ID from navigationview header? (Kotlin, Android Studio)
I only started learn Kotlin, and maybe for advanced developers this be some easy. I have header on navigationview, this header have image, image have id. I want when I click on this image, open new ...
0
votes
1
answer
71
views
overriding onNavigationItemSelected stops navigation to fragments on item click in drawerLayout
overriding onNavigationItemSelected stops navigation component functionality of opening fragments on item click, instead it calls onNavigationItemSelected and nothing else happens.
navigation view ...
0
votes
1
answer
162
views
Make fragment layout fullscreen in single activity approach in android
I have been using the single activity approach and the navigation component.
My single activity has a bottom navigation view and one of the bottom view is a RecyclerView. Clicking on one of its items ...
-1
votes
1
answer
35
views
how to make visibility = View.GONE a certain view when launching a certain fragment when using navigation and BottomNavView
main_actiity.class
activity_main XML photo
main_fragment.class
fragment_main XML photo
enter image description here
0
votes
0
answers
503
views
saveBackStack FragmentTransactions must use setReorderingAllowed(true). Found BackStackEntry{} that did not use setReorderingAllowed(true)
A HomeActivity class has a bottom menu navigation which opens up a fragment class. Everything is good to navigate inside the fragment class. However, when I click any other bottom menu navigation item ...
1
vote
2
answers
429
views
Change color of line divider in group menu item of NavigationView
After moving to material3, the color of the line divider is different. I want to change it.
themes.xml:
<style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar">
...