Questions tagged [android-jetpack-navigation]

Navigation between different screens and apps is a core part of the user experience. Android Jetpack Navigation Component helps the developer to implement it following the good practices. For more info see documentation: https://developer.android.com/guide/navigation

834 questions
0
votes
2 answers

Transmit data with Jetpack

Looking for a more elegant way to transmit data with Jetpack Now I am passing the data as follows: override fun onListItemClick(itemIndex: Int, itemCode: String) { val bundle = Bundle() bundle.putString(KEY_TARGET_GUID,…
Morozov
  • 4,968
  • 6
  • 39
  • 70
0
votes
1 answer

Android Room Database IS updating, but is not sending updates upon returning to a Fragment

FIXED SEE BELOW If a picture is worth 1,000 words, a video is worth, like, a lot of words. Here's a video explanation of the issue. I've included a video as it makes things much clearer. The problem: When I first load up the fragment containing the…
0
votes
0 answers

How to Enable Backstack for Fragment using Navigation Comp. Lib

my question related only to the new Library from google Navigation Component library, so it's not related to the regular fragment like .addtobackstack and so on. I will simplify what I wanna do, but my app has +30 fragment we have a Parent fragment…
0
votes
1 answer

Issue with Navigation component and TextInputLayout error

I am using the Navigation component in my app to create an on boarding flow. The intro Fragment needs to have a transparent status bar so that the background image covers all of the screen while the sign in fragment will have a visible status bar.…
0
votes
1 answer

navigate fragments using navigation component with help of popUpTo

I have three fragments Fragment1 -> Fragment3 -> Fragment4 , So if I click back button in Fragment4 I need to go to Fragment1 using navigation component, I saw popUpto and I didn't understand. Can you please tell me what I did wrong? I have used…
Balaji
  • 1,773
  • 1
  • 17
  • 30
0
votes
2 answers

How to manage bottomNavigation from fragment?

I'm trying to set navController to bottomNavigation, but it's requires activity, the problem is my borromNavigation hosted in fragment, so i don't have activity instance. I've tried…
0
votes
1 answer

Navigation graphs and multiple host activities

I have a feature module, splash, which has a nav_splash graph and a SplashActivity. When I navigate to a second feature module, main, which has a nav_main graph and a MainActivity, instead of using MainActivity as host (even in the navigation editor…
JavierSegoviaCordoba
  • 6,531
  • 9
  • 37
  • 51
0
votes
1 answer

Jetpack: Unable to transition to other navigation.xml's fragment

I'm currently trying to transition to a Fragment in navigation2.xml to navigation.xml. I thought Reference other navigation graphs with would do but doesn't work. If there is a sample or hints about transitioning between fragments of different…
Nancy
  • 129
  • 2
  • 13
0
votes
3 answers

How to change label dynamically in Fragment?

I want to change the "android:label" in Fragment I tried to run the following code to change label, but It failed. val graph = findNavController().graph graph.label = "测试" findNavController().graph = graph
0
votes
1 answer

Disabling animation when using Navigation Component together with BottomNavigationView

How can I disable/change the fading animation when using Navigation component together with BottomNavigationView? My code to set them up together (in the activity) is as follows: private fun setupBottomNavMenu() { val navController =…
0
votes
1 answer

How to set and retrieve arguments set in NavGraph.xml?

I know the Android developer articles about Android Navigation: https://developer.android.com/guide/navigation/navigation-pass-data and https://developer.android.com/guide/navigation/navigation-getting-started Neither of the articles describes how…
0
votes
2 answers

Updating NavDestination label at runtime

I can not update NavDestination's label at runtime. it reflects but not from the first time i enter the screen, it doesn't reflected instantaneously My ViewModel class PrepareOrderDetailsViewModel( brief: MarketHistoryResponse, private val…
0
votes
1 answer

how to add both bottom navigation and navigation drawer in an android app

Currently I have three options in my bottom navigation and a navigation graph for them. part of my mainActivity.xml file look like this:
0
votes
1 answer

How to prevent Navigation when using Android Jetpack Navigation

I want to check the actual Fragment if it's dirty and warn the user to lose his changes. I could'nt find an Listener on the Navcontroller to interact before the navigation happens. I already tried to set a listener to the BottomNavigationView but…
0
votes
1 answer

How can i customize setupActionBarWithNavController animations?

I can customize android navigations actions easily, like this code, but I am not able to customize actions coming from drawer or bottomnavigation and menu. Is there a way to customize this actions? Actions coming from this configurantion…
1 2 3
55
56