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

How to add NavDestination to NavigatorProvider?

The extension function of package androidx.navigation have plusAssign, therefore it is equivalent of += but in my code it doesn't find the plusAssign. class MyNavHostFragment: NavHostFragment() { override fun createFragmentNavigator():…
Mohsen
  • 1
  • 1
  • 3
-1
votes
2 answers

Navigate using View Model in Jetpack Compose

Here is my MainActivity.kt file Surface(modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background) { NavigationHoster() } here is navhoster function @Composable fun NavigationHoster(){ …
-1
votes
1 answer

Welcome screen not showing instead showing navigation menu?

I am developing android car rentup when I first launch application it is showing navigation menu not welcome screen. I am using jetpack navigation when user launch application it has to show welcome screen after that success login it has to show…
-1
votes
1 answer

How to send data from adapter class to fragment using navigation component

I have three fragments in my app Home, Profile and Detail.In Home fragment I am showing a list of users. When user clicks on any item in the list it will open detail fragment and in the detail fragment I want to show user's details. I am using…
Digvijay
  • 2,887
  • 3
  • 36
  • 86
-1
votes
3 answers

Starting a fragment with a recyclerview using JetPack Navigation

I have an app that has MainActivity but all the work is in the fragment. I made the fragment layout the HomePage using JetPack navigation. and it worked. but when i added the recycler view it crashed. the error was this: E/AndroidRuntime: FATAL…
-1
votes
2 answers

After the navigation do not show Bottom navigation view

In my project i added the navhost fragment and BottomNavigationView to the my activity_main and everything seems fine when navigation but when i click the toolbar options i navigated to the another page but i still see the bottom navigation view,…
-1
votes
1 answer

how to go back to previous destination from fragment two to fragment one on button click in Jetpack Navigation

I am using Jetpack navigation to navigate between the fragments.Since I am using it for the first time I am unaware about how it will navigate from fragment two to fragment one on click of a button or based on some condition in the…
-1
votes
1 answer

Fragments recreated with Jetpack's Android Navigation components

I have two fragments (for ex. fragmentA and fragmentB). first , in fragmentA use findNavController().navigate(R.id.action_fragmentA_to_fragmentB) to navigate to fragmentB . then , in fragmentB if you want to back to fragmentA. there are two ways…
-3
votes
1 answer

How can I pass data from MainActivity to host Fragment data in bottomnavigation?

I have bottom navigation in main Activity and have a data in MainActivity and I want to pass that to HostFragments I am using NavigationExtensions form google NavigationAndvancedSample sample here the extension function I am using in MainActivity…
I.S
  • 1,904
  • 2
  • 25
  • 48
1 2 3
55
56