android-navigation-graph Questions

6

The app I'm building uses compose navigation with routes. The challenge is that the start destination is dynamic. Here is a minimal example: class MainActivity : ComponentActivity() { override fun...

5

Solved

When a configuration change happens and my Activity and Fragment are recreated because of it, my nav Graph scoped ViewModel is unavailable while the Fragments have already been created again. It se...
Scagliola asked 7/9, 2020 at 15:22

7

Solved

I have two Fragments, one being a home fragment in my graph. The User will be navigated to the second fragment upon clicking a button. It works as expected by navigating the user to the second frag...
Zamudio asked 4/11, 2020 at 18:48

4

Solved

I know there are a few questions and answers about this problem, but none of the solutions fixed my problem. I get an android.view.InflateException: Binary XML file line #11: Binary XML file line ...

2

My problem is when I try to change the fragment with the bottom navigation it works except in one case. I have 5 fragments, when I enter in the 3rd and after go to the 5th, the icon of the 5th don´...

6

Solved

I have 2 fragment call CreateRoomFragment and DisplayPhotoFragment,the navigation graph is look like this: <navigation> <fragment android:id="@+id/createRoomFragment" android:name="pa...

1

I have an Android project with three flavour_a , flavour_b and flavour_c. flavour_a and flavour_b using the same navigation graph. For flavour_c workflow is different means only need to use a subse...
Tonry asked 11/11, 2020 at 7:0

1

Solved

I have an app that manages Boxes. This app has a single activity and uses fragments as destinations. It has (among others) the following destinations/fragments: Home (registered as topLevelDestina...

9

in the fragment which i made it host in the tag fragment in activity when i use navController = Navigation.findNAvController(view) the app crashes by the error: View does not have a navController s...

1

I just updated Android Studio to v3.5 and my project stopped to run, giving me the following Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mcampana.turle/com.mc...
Coloring asked 27/8, 2019 at 10:14

0

I have a single activity application that uses Android's Navigation Component to navigate between fragments. I have an issue where, if the app is backgrounded and resumed, the navigation graph retu...

1

I have 3 tabs A, B, C in BottomNavigationView and each has a nav graph. I can do what I want perfectly in navigation 2.3.3 by a complicated navigation extension, just like the old architecture-comp...
Plenteous asked 26/1, 2022 at 3:56

1

Solved

We have next attributes to remove fragment/fragments when opening another one. app:popUpTo="..." app:popUpToInclusive="true" But in case when I need to clear all back stack not...

1

Solved

So I have a kotlin file named "ListScreen" (it's not a class! just a .kt file with composable functions) and I'm handling transactions with compose navigation graph system. Right now I'm ...

1

I use navigation component and use deep link for passing the value or changing page I can pass primitive and enum objects I never try passing Parcelable object via deep link is it possible?
Carlock asked 11/6, 2020 at 11:19

4

I'm using the Jetpack Navigation Component in my project with a single activity and some fragments. I have a fragment with a list that fills from server side. I call getDataFromServer on the onVie...

4

I'm following single activity approach. I have navigation toolbar, whenever i go to other screens (fragments) instead of hamburger icon i will have back arrow. What i want to achieve is, pop my cu...
Improbable asked 23/10, 2019 at 6:30

2

Solved

I'm using Android Jetpack Navigation Component. I have a nested nav graph with id, say R.id.nested_graph The first Fragment of the nested graph receives one parameter. <navigation android:id="...

2

I have a simple application with one activity and around 4 fragments. I am using android navigation components. Starting from my splash fragment to next fragments every time fragment is changed, On...

5

Solved

I have created a navigation action from a fragment to an activity, but I have no way of clearing the back stack. When I execute the navigation action from my fragment to my new activity, and I pres...

1

Solved

Due to difficulties with the implementation of the back button in the toolbar between two fragments, I decided to start acquaintance with Navigation Graph. But I get an error Views added to a Fragm...
Karlie asked 3/7, 2020 at 20:15

1

Solved

In my app, the user can select a category, then select an item within that category to finally view the item details. The standard/forward flow is: SelectCategoryFragment -> SelectItemFragment -...

1

Solved

I'm trying to pass an ArrayList<String> as an argument while using safeArgs. But when I select ArrayList from the list of serializable and build, it is throwing me these exceptions One type ...

3

I am using the Navigation Component of Android Jetpack (2.2.0-alpha01). I wish to use a child NavHostFragment nested inside my main NavHostFragment, equipped with its own child nav graph. Please vi...

1

Solved

I have a single Activity application. I created a single Navigation graph containing all the possible destinations (Fragment). The Activity layout only contains a <fragment/> container as it...

© 2022 - 2024 — McMap. All rights reserved.