Creating a BottomNavigation Multi-Stack using child Fragments with Simple-Stack

How bottom navigation with child fragments normally works

What Simple-Stack normally does

Simple-Stack basic fragment setup

Keeping the Backstack alive for each Fragment

FragmentStackHost

Managing the lifecycle of nested Backstacks

FragmentStackHostFragment

Registering the stack hosts as a scoped service

RootScreen

Setting up the host fragments (and their child fragments)

RootFragment

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

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