Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
23 views

how to save fragments using jetpack navigation like other apps do

Jetpack-navigation works well and is responsive in most applications. For example, YouTube: When you go into it you see fragment container and bottom navigation. Inside the fragment container there ...
TenolToSy 's user avatar
0 votes
0 answers
46 views

Navigation component, Fragments and predictive back: some clarification

I'm trying to implement the predictive back gesture in an app based over fragments and navigation component. While it works out of the box for bottom sheets and activities, it doesn't work with ...
m.i.n.a.r.'s user avatar
  • 1,040
0 votes
1 answer
42 views

How to navigate from one fragment created in one Navigation graph to another fragment situated in another Navigation Graph?

I have created an MainActivity which has a fragment HelloFragment and a Navigation Graph nav_graph. And I also have another Activity WhyActivity which has a fragment WhyFragment and a Navigation Graph ...
vilnius19's user avatar
  • 115
0 votes
1 answer
1k views

Skip back stack items on jetpack compose navigation

I'm having an issue with jetpack compose navigation back stack handling: Lets say I have four screens in jetpack compose ScreenA ScreenB ScreenC ScreenD I can navigate from: ScreenA -> ScreenB ...
Aerim's user avatar
  • 2,026
0 votes
0 answers
130 views

Build Issue After Upgradingt to Android Studio Dolphin | 2021.3.1 Patch 1 | Navigation Directions

I updated my IDE to Android Studio Dolphin | 2021.3.1 Patch 1 and I am getting build error. I don't now why. But they seems only related with navigation-directions from Navigation. here is the screen ...
Mustafa Berk's user avatar
0 votes
0 answers
163 views

Android nested fragment navigation

How in the right way implement nested navigation with Android Navigation component? For example if we have 2 fragment outer and inner with 2 navigation graph. How i can navigate (get navigation ...
Makc's user avatar
  • 105
0 votes
1 answer
24 views

navController.navigate(fragmentAId) vs navController.navigate(action_fragmentA_to_fragmentB)?

In navigation component of android what's different between just passing one fragment id to navController.navigate() with passing action fragment a to fragment b ?
Mehrzad's user avatar
  • 123
0 votes
1 answer
242 views

How do I load detail content when row/ column is clicked

I'm practicing Jetpack Compose, I'm trying to create a screen that load texts and image content when navigated to. Here's what I mean; [Referencing the android developer soothe app.] If I make the ...
Edwin's user avatar
  • 705
0 votes
1 answer
606 views

Jetpack Compose - Using Nested NavGraph with BottomNavBar and make Icons selected

I want to implement a BottomNavBar with 3 items. Each navigating to a new navGraph. (Nested Navigation) Home = "HomeGraph" Explore = "ExploreGraph" Profile = "ProfileGraph&...
HavanaSun's user avatar
  • 836
1 vote
0 answers
49 views

Android NAvigation with BottomNavigationView does not save UI state

I have a Fragment with bottom tabs named TabsFragment class BottomTabsFragment : Fragment(R.layout.fragment_tabs) { private val bottomNavigationView: BottomNavigationView by lazy { ...
Vetalll's user avatar
  • 3,634
0 votes
0 answers
478 views

Save states between screens with BottomNavBar - Jetpac Compose

As the title suggests - I want to save the states of screen elements. That is, I want to switch something on screen A, go to screen B, return to screen A and have all the changes in screen A saved. I ...
Masson_R's user avatar
0 votes
1 answer
173 views

Jetpack Navigation: Popping non top entry

Suppose I've three pages. Home, Detail, and Watch, and consider I've the below navigation stack. Home -> Detail -> Watch -> Detail. Now I want to open a new Watch page, but the existing one ...
theapache64's user avatar
  • 11.6k
0 votes
0 answers
310 views

How do I include a Jetpack Navigation graph from a compiled library (aar) into my app?

I have a library that I have deployed to a maven repo. This library does not define any activities, only fragments. Additionally, the library defines a navigation graph. How would I use this graph ...
AgileNinja's user avatar
1 vote
0 answers
219 views

Fragment onCreateView - android.content.res.Resources$NotFoundException

I was working on my application and it was perfectly working on my phone. But when I published it on google play store, my customer had an ANR when he installed it on his phone. So I checked the stack ...
Glory's user avatar
  • 1,077
2 votes
1 answer
3k views

Android navigation component, backstack, nav graph, skip fragments

I have following navigation in app. A->B->X->Y->R or A->C->X->Y->R or A->X->Y->R or A->R I don't want X and Y in backstack. I know than in action Y->R I can do ...
kkkkk's user avatar
  • 696

15 30 50 per page
1
2 3 4 5
7