Questions tagged [android-navigation-graph]
303 questions
0
votes
1 answer
How to add Action bar to main screen when using navcontroller?
I am creating a project in which i would like to have following phenomenon. The first activity can be launched from an intent. When it is launched it has a back button on action bar. There are further destinations from this activity which i have set…

neonpokharkar
- 96
- 11
0
votes
0 answers
Send viewmodal livedata to another fragment which is having a listadapter
I have two fragments.
One activity which is ideal, I use nav Host to navigate from 1st fragment to another. I do not have a database as of now. I make a call in the repository using retrofit which returns the result as OutPut which is sealed class,…

K P
- 182
- 9
0
votes
1 answer
Bitmap Disappearing When Reloading Fragment
The bitmap making up the background of a fragment disappears when the fragment is reloaded.
If the user goes to a different fragment and comes back to this one it works ok.
The reloading is done using Android Navigation - using a navigate call to…

user1114
- 1,071
- 2
- 15
- 33
0
votes
1 answer
How to clear Fragment after authentication in Navigation graph?
I'm using Navigation graph where i have two fragments (Login Fragment and Main Fragment), Login fragment is use to authenticate users and Main Fragment is displaying list of data.After Successfully Authentication, I'm able to navigate to Main…

Mattwalk
- 69
- 9
0
votes
1 answer
Nav Direction class not getting updated when safe args is added
I am trying to pass an argument from one fragment to another while navigating and followed the instructions as per https://developer.android.com/guide/navigation/navigation-pass-data
I have been using safeargs for some time in the project now, so…

Anirudh Ganesh
- 446
- 4
- 22
0
votes
1 answer
Android Navigation component popUpTo taking back to popped up fragment
Please do not mark this as duplicate, I have read these SO question already but still, it is not working
navigation component popUpTo bug
Android navigation component popUpTo behaviour
Android Navigation Component + Login Flow + Nested…

MXC
- 458
- 1
- 5
- 21
0
votes
1 answer
Navigate from one dynamic feature module to another with Jetpack navigation architecture component
How to navigate from the base module or a dynamic module to a dynamic module using the navigation component?
How to define the destination module inside the navigation graph?

Darish
- 11,032
- 5
- 50
- 70
0
votes
1 answer
Navigate to fragment with NavController from notification
I need to navigate to a fragment, when the user clicks a notification.
This works fine if the app is running. However when I quit the app, and then click on the notification it crashes with this error message:
2020-04-24 18:06:49.607…

supermar10
- 130
- 14
0
votes
1 answer
Clicking on the First Item on BottomTabBar Navigation Does Not Work on Android
I am using Android Jetpack with Kotlin to create this BottomBarNavigation UI using NavigationHostFragment, Navgraph and NavController.
I have 3 tabs and everything works as expected except when I try to click on the first tab, it does not do…

Al Nafis
- 127
- 9
0
votes
3 answers
BottomNavigationView background color with opacity not working properly
I've implemented BottomNavigationView with navigation graph.
while setting a solid colour in navigationView as a background, it's working fine but when I set background colour with opacity it's not working properly.
Here is my gradle…

Parth
- 791
- 7
- 17
0
votes
0 answers
Android Navigation Components with BottomNavigationView and SplashScreenFragment as startDestination
Currently I'm trying to implement app where on startup is SplashScreenFragment and after several seconds I switch to screen with BottomNavigationView

Jarda Havelik
- 502
- 1
- 7
- 18
0
votes
1 answer
androidx.navigation:navigation-fragment:2.2.0, get "You must call removeView() on the child's parent first." on navController.popBackStack()
I like use data binding and navigation graph. But after update androidx dependencies from androidx.navigation:navigation-fragment:2.0.0 on 2.2.0 application is crashed after press button "Back". Crash always after return from other fragment to…

ARadzh
- 23
- 3
0
votes
1 answer
Android NavigationUI startDestination class (not ID) programmatically
I need to set the start destination of a navigation graph programmatically depending on a condition. I have Fragment0, and also Fragment1, Fragment2, ... FragmentN all extending Fragment0, and being all of them (including Fragment0) able to be that…

mantc_sdr
- 451
- 3
- 17
0
votes
2 answers
Android Navigation Graph continues api call issue
I had used navigation graph in my android project.In my project contains 3 fragments Registration,Login and Home Fragment in Bottom Navigation View.In Home Fragment calls api to fetch list of records.When I navigate that Fragment each time ,it calls…

Meenakshi Sundaram
- 21
- 5