Creating a BottomNavigation Multi-Stack using Child Fragments with Jetpack Navigation

How bottom navigation with child fragments normally works

What Jetpack Navigation normally does

Creating a NavController and backstack for each bottom navigation tab

Navigating within a child fragment in a child stack

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gabor Varadi

Gabor Varadi

4.1K Followers

Android dev. Zhuinden, or EpicPandaForce @ SO. Extension function fan #Kotlin, dislikes multiple Activities/Fragment backstack.