Use plain android Views without Fragments, still having direct access to Lifecycle, ViewModel etc.
Navigation and back stack are managed by BackStackNavigator
across configuration changes.
Add ViewLifecycle dependency
implementation "ru.viewlifecycle:viewlifecycle:1.12-alpha"
View extensions provided:
viewModels()
for creating ViewModelslifecycleOwner
to access its lifecyclearguments
similarly to Fragments
See todo app sample based on this library.