Multiple navigation graphs (with bottom navigation bar)

What if you have your navigation graph with all your screens, but one screen contains a navigation UI (e.g. a bottom navigation bar)? This is a common scenario if you are having some part of the app where users are not required to be logged in, but you switch layout after they log in.…

Jetpack ViewModel initialization

ViewModels in Android Jetpack is an awesome approach for decoupling business logic from Activities/Fragments. But where do you place the initialize logic and how do you pass those initial values when you don't create the object yourself?…