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...
Norword asked 18/12, 2021 at 14:1
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 ...
Cowden asked 2/7, 2020 at 20:0
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´...
Stenger asked 16/2, 2022 at 16:39
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...
Ician asked 31/1, 2020 at 11:28
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...
Limnetic asked 8/9, 2022 at 17:16
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...
Embree asked 27/8, 2019 at 21:0
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...
androidandroid-architecture-componentsandroid-architecture-navigationandroid-navigationandroid-navigation-graph
Tillfourd asked 11/5, 2022 at 6:18
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...
Coming asked 30/7, 2021 at 7:20
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 ...
Khorma asked 1/7, 2021 at 14:34
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...
Orvie asked 6/2, 2019 at 12:9
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="...
Hawkie asked 18/12, 2019 at 12:12
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...
Abstention asked 18/10, 2020 at 14:12
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...
Happenstance asked 7/1, 2020 at 17:43
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 -...
androidandroid-architecture-componentsandroid-architecture-navigationandroid-deep-linkandroid-navigation-graph
Norvil asked 15/6, 2020 at 17:29
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 ...
Sofko asked 2/6, 2020 at 4:46
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...
Finder asked 31/8, 2019 at 19:18
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...
Cinda asked 28/4, 2020 at 19:33
1 Next >
© 2022 - 2024 — McMap. All rights reserved.