android-jetpack-navigation Questions
2
Solved
How can I disable the back button in Jetpack Compose? I don't want the user to go back to previous screen.
I tried below code but the user can still go back to the previous screen:
BackHandler(enab...
Androw asked 16/12, 2021 at 8:41
3
I'm using the following sippet of code to navigate from a composable to another one, but it has a default fade animation. How can I remove it? I tried using an empty anim resource but it doesn't wo...
Foliolate asked 1/12, 2021 at 20:59
5
Solved
I want to use deep links with Jetpack Compose's Nav Host and followed this page on Compose Navigation: https://developer.android.com/jetpack/compose/navigation#deeplinks
My implementation:
AndroidM...
Cousteau asked 30/10, 2021 at 20:25
1
Solved
Sending Result Back with SavedStateHandle does not work with SavedStateHandle injected in ViewModel.
Getting result using navController.currentBackStackEntry?.savedStateHandle? it works!
fun Create...
Naquin asked 13/8, 2023 at 6:57
17
Solved
I want to pass a parcelable object (BluetoothDevice) to a composable using compose navigation.
Passing primitive types is easy:
composable(
"profile/{userId}",
arguments = listOf(navArg...
Mortie asked 7/1, 2021 at 9:48
2
Solved
I'm new at navigation graph and I have a simple movie application that contains a BottomNavigationView with 2 tabs or 2 icons , the first icon or first tab contains 2 Fragments the first one is Fee...
Haricot asked 5/7, 2023 at 17:49
5
Solved
I'm in the process of implementing NavigationComponent coupled with a BottomNavigationView and I am noticing that the back arrow is shown in the toolbar for all fragment destinations except the one...
Gambit asked 19/6, 2019 at 14:33
3
I'll try to do some ASCII art to describe the problem:
<--------------------------------------\
DestinationA --> DestinationC ---------> DestinationE
DestinationB ------/ \-----> Desti...
Jig asked 1/5, 2021 at 12:12
3
Solved
I am migrating my app to jetpack compose and the theming and styling is giving me some headache.
I have implemented Bottom Navigation as explained in this tutorial.
I have also set the background c...
Tommie asked 15/3, 2023 at 9:58
13
Solved
I'm trying to implement navigation in my app which is built with Jetpack Compose, but when I try to navigate from a screen to another I get:
java.lang.IllegalArgumentException: CreationExtras must...
Warnerwarning asked 10/8, 2022 at 7:49
2
I am using Jetpack Compose ui version 1.3.0-beta08 and navigation compose version 2.4.0-alpha02 and working Bloom app with all new Architecture components. After login success I need to clear all p...
Flatfish asked 7/6, 2021 at 8:43
3
I am getting this error multiple times in all my Jetpack compose projects. Is this error an issue related to the Gradle? Because I have not changed anything to the Theme.
java.lang.NoSuchFieldError...
android-studioandroid-jetpackmaterial-components-androidandroid-jetpack-navigationandroid-jetpack-compose
Reba asked 5/12, 2020 at 20:4
10
Solved
I am currently implementing the Navigation Component into my app but it seems finding the NavHostFragment just doesn't work no matter what I do.
I have tried, rebuilding, invalidating, and restarti...
Appellation asked 4/9, 2020 at 10:48
1
When navigating between two Screens, where each holds a Scaffold with a TopAppBar, the TopAppBar is animated to go out of the UI and back in. (short white flash in my example, just like the button ...
androidandroid-jetpack-composeandroid-architecture-navigationandroid-jetpack-navigationandroid-jetpack-compose-material3
Carving asked 29/4, 2023 at 20:47
1
Let's say I have this navigation structure:
That will look something like this with compose-navigation:
NavHost(navController = navController, startDestination = "login") {
composable(&...
Sweptback asked 20/1, 2023 at 13:28
4
I'm using JetPack Compose with composable NavHost.
I have a scenario where I need a Launch screen that connects bluetooth device so I've set it as my starting route in NavHost.
After connection is ...
Bridie asked 5/10, 2021 at 13:35
2
I'm trying to use the Jetpack Navigation component. The docs here talk about animating transitions. The example code uses the animations slide_in_right and slide_out_left and acts like they will be...
Goatee asked 15/7, 2020 at 20:39
1
Solved
Here is my set up:
@Composable
fun MyNavHost(navController: NavHostController = rememberNavController(), padding: PaddingValues) {
val actions = remember(navController) { MainActions(navController...
Orientate asked 23/3, 2023 at 16:36
3
I am working on Jetpack Compose Navigation demo and I have a nested navigation graph with two different nested routes and screens for each nested route:
Login Graph
Main Graph
Login Graph has thr...
Effete asked 8/3, 2022 at 9:22
4
Solved
I am using navigation component for jetpack compose in my app like this:
@Composable
fun FoodiumNavigation() {
val navController = rememberNavController()
NavHost(
navController = navController...
Edwardoedwards asked 20/1, 2021 at 13:9
4
Solved
I created an application with a bottom navigation bar and added four different nav graphs using google's advanced navigation example
After that I added a fifth graph called settings that had the se...
Philoprogenitive asked 26/6, 2020 at 8:41
2
Solved
How do I declare a navigation route with multiple navigation arguments? I've checked the documentation, and all of these articles (which seem to simply reiterate what the documentation says), and I...
Eydie asked 2/1, 2021 at 18:41
40
I am having an issue with the new Android Navigation Architecture component when I try to navigate from one Fragment to another, I get this weird error:
java.lang.IllegalArgumentException: navigati...
Lorsung asked 27/6, 2018 at 10:42
0
I want to pass some data using savedStateHandle from activity straight to fragment's viewModel.
In my activity I have:
navController.addOnDestinationChangedListener { controller, _, _ ->
contro...
Saddletree asked 27/10, 2022 at 11:4
2
I'm using the Jetpack Navigation library and having an issue with the fragment transitions, either if it's a fade or slide animation it always has a white background instead of the previous screen ...
Nanji asked 1/7, 2019 at 16:2
© 2022 - 2025 — McMap. All rights reserved.