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
1 answer

Pop fragment on navigating to destination

I have activity with container like this:
0
votes
1 answer

Spinner in Kotlin Jetpack Navigation Fragment

I cannot get the spinner to work normally in my fragment. The error I'm getting is "ArrayAdapter function cannot be called" on the ArrayAdapter line. override fun onViewCreated(view: View, savedInstanceState: Bundle?) { …
0
votes
3 answers

why I can't change toolbar title after using back button (physical back button) in Android?

here is the project to be downloaded: https://www.dropbox.com/s/lq3p2pnwjacik7s/testApp.zip?dl=0 I am using Android navigation component, and here is the screenshot of the app: as you can see, in the MainActivity layout, there are a…
0
votes
1 answer

why my progress bar from my activity doesn't show in my fragment after I press hardware back button?

so I am using navigation controller component in Android. I have a progress bar in my MainActivity that will be used in all my fragments when the user need to wait while fetching data from server. in my onCreate MainActivity it will be declared like…
0
votes
1 answer

Android: Using jetpack navigation, how can you add a collapsingtoolbarlayout to your fragments without the back button breaking?

I have this collapsingtoolbar code below that was working perfectly. However when I switched to using Jetpack Navigation (Nav graph), hitting the back button on the app would cause every other view to suddenly shift down like so. How can i avoid…
0
votes
1 answer

Jetpack navigation does not navigate to other destination

I am using jetpack navigation in two different activities each with its navigation host. I have Main activity which everything just works fine and Setup activity which have 2 fragments, one has a button which should navigate to other fragment when…
Nux
  • 5,890
  • 13
  • 48
  • 74
0
votes
0 answers

Navigation Jetpack How to Navigate to Original Fragment

I have 3 fragments: nav_home --> draw_request --> draw_confirmation Everything works great. Except after 1 st cycle, the nav_home goes to draw_confirmation directly. So this is the sequence: nav_home --> draw_request --> draw_confirmation -->…
0
votes
1 answer

Android - Jetpack Navigation

After creating a new project and select Navigation Drawer Activity using Kotlin language in Android Studio, the navigation is working like a charm. But when I generate the same project with Java language, it won't navigate to another fragment.…
Husni Kamal
  • 75
  • 1
  • 8
0
votes
2 answers

how to save state list in jetpack-navigation

I designed an app using jetpack-navigation There is a problem as illustrated in the following image when I move from one fragment to another one the status of the list disappears. In fact, when returning from a layout, the article will be re-created…
0
votes
1 answer

is unknown to this NavController inside tab layout

I'm implementing a navigation component but I have a problem when my fragment is inside tab layout it is showing an error like this: /action_previousMatchFragment_to_detailMatchFragment is unknown to this NavController class MatchAdapter(private…
0
votes
2 answers

Move to MainActivity with Jetpack Navigation

How i can move from SettingsListFragment in my MainActivity?
Morozov
  • 4,968
  • 6
  • 39
  • 70
0
votes
1 answer

Android Navigation How to Add Navigation Up button on 2nd level fragment

I'm using a navigation graph to host my fragments. How do I add back button from more_menu_help so that it can go back to nav_more? See screenshot: I tried to do the following, however, the back arrow icon appears in nav_payments, nav_benefits,…
0
votes
2 answers

Android, how to add toolbar in my Preferences?

First, I am using Jetpack Navigation Component - navigation drawer. And "No Action Bar" is my app's main style.