android-jetpack-navigation Questions
2
Solved
Assume that my application looks like this
@Composable
fun AppNavigation() {
val navController = rememberNavController()
NavHost(navController, startDestination = Route.Home.route) {
/// other ...
Mauser asked 12/4, 2021 at 14:1
3
Solved
I want to navigate to another screen, but i want to save current state, and then restore it. I tried to do as described in the bottom navigation documentation:
navController.navigate(Screen.CameraS...
Hiero asked 8/7, 2022 at 15:8
4
I am discovering android Jetpack Compose (and Navigation) and try to display a preview of a view with a navController as parameter.
To achieve this, I use the PreviewParameter and I have no error, ...
Farmhand asked 28/11, 2021 at 18:39
9
Solved
I am using Advance Navigation Component with BottomNavigationView.
In one tab I have ViewPager2. When I clicked on the tab for the first time, it worked fine.
Although the second time, come on that...
Kettie asked 5/5, 2020 at 5:56
2
I'm wondering why I get this weird transition when navigating to my Settings screen too quickly (video on YouTube: https://youtube.com/shorts/UPv66zqHMbo?feature=share).
Here's all the related code...
Poetry asked 24/11, 2023 at 10:56
7
Solved
Can anyone suggest how to share a ViewModel within different sections of a Jetpack Compose Navigation?
According to the documentation, viewModels should normally be shared within different compose ...
Whalebone asked 27/7, 2021 at 16:19
10
Solved
I'm using the Jetpack Navigation library with the Compose version. I'm setting up navigation like it's shown here
I want to be able to navigate from screen A to screen B. Once B does something and ...
Aldas asked 27/3, 2021 at 23:37
10
Solved
I'm using compose-navigation(alpha09) to handle the navigation between composables
I want to remove the Splash screen when moving to the next destination (I don't want the back pressed to get back ...
Rawalpindi asked 28/3, 2021 at 20:28
10
I have 2 screens which both have their own Scaffold and TopAppBar. When I navigate between them using the Jetpack Navigation Compose library, the app bar flashes. Why does it happen and how can I g...
androidandroid-jetpackandroid-jetpack-composeandroid-jetpack-navigationandroid-jetpack-compose-scaffold
Filicide asked 3/8, 2021 at 9:40
5
I have a login scren and when the login is successful and the view model updates the mutable state variable, my expectation is that a new composable function is called to show a new screen and the ...
Cammycamomile asked 7/10, 2021 at 19:55
3
An example, the app first starts with screen A in the back stack, then navigates to screen B, then navigates again to screen C, and finally popUpTo Inclusive back to class A.
|--------| |--------| ...
Wiesbaden asked 10/10, 2023 at 4:22
4
Solved
What are the ways in which navigation is possible between a composable and an Activity and vice versa?
Can I do it by using the startActivity(...) method or is the only way to create Screens and Na...
Anyhow asked 1/12, 2020 at 9:40
3
Solved
I have found a similar question here. At the time of writing this question there is only this answer avaliable, which does not provide any help to me, and I believe also to the person who asked the...
Unimpeachable asked 1/5, 2021 at 19:54
4
Solved
NavController can't pop programmatically the latest @Composable in the stack. I.e. popBackStack() doesn't work if it's a root page. So the application can be closed by tap on "Close" butt...
Rowell asked 5/5, 2021 at 12:27
5
A dialog can have a rather complex ui, acting more like a floating screen rather than a typical AlertDialog. Therefore it can be desired to let the dialog have its own ViewModel and being able to n...
Mako asked 5/5, 2021 at 7:36
2
I have this navigation graph
fun NavGraphBuilder.manageAvailabilityGraph() {
composable(
"availability/{id}",
arguments = listOf(
navArgument("id") {
type = NavType.StringT...
Simonette asked 23/8, 2022 at 3:50
3
Solved
I'm implementing the Logout action in an application. I want that when user clicks Logout, go to Login. When the user takes this path: Login -> Home -> Settings (where he clicks on Logout) -&...
Rager asked 11/11, 2022 at 15:51
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
2
Solved
I found out that the composable screens are getting recomposition multiple times during navigation from Navhost compose
the following example shows how I'm integrating the navigation with logs to i...
androidandroid-jetpack-composeandroid-jetpack-navigationjetpack-compose-navigationcompose-recomposition
Donatus asked 14/9, 2021 at 11:7
1
Why does navigation composable call twice? If I set a breakpoint on the Text I will get two stops when the app runs. Thank you for your answers.
class MainActivity : ComponentActivity() {
override...
Millett asked 15/10, 2021 at 17:38
2
Solved
I am trying to add a Listener and receive a callback whenever the navigation transition has finished in Jetpack Compose.
I have tried to use the NavController API addOnDestinationChangedListener bu...
Eyestalk asked 21/12, 2022 at 9:47
4
I'm facing this random crash while navigating to a Fragment via deep-link which is declared in the navigation graph file. I'm using navigation component library in my project.
Stacktrace:
Fatal Exc...
Scarlet asked 4/10, 2021 at 14:5
2
I have an Android Jetpack Compose application that uses BottomNavigation and TopAppBar composables. From the tab opened via BottomNavigation users can navigate deeper into the navigation graph.
The...
Quinacrine asked 2/10, 2021 at 23:52
8
Solved
Out of nowhere, the build is crashing with a strange error related to the navigation component even though it used to work before, the error is in the generated class, in my case NativeLanguageSele...
Gillespie asked 19/5, 2021 at 19:46
3
I have WebView inside the LazyColumn. It shows up fine. The thing is when I try to navigate back by calling navController.popBackStack(), I got fatal crash (Fatal signal 11 (SIGSEGV)).
I ran it on ...
Nakesha asked 16/12, 2022 at 20:35
1 Next >
© 2022 - 2025 — McMap. All rights reserved.