rootstrap / android-base

Rootstrap Android Base project
https://rootstrap.com
40 stars 6 forks source link

Incorporate a Fragment flow with Navigation and Safe Args #53

Open hrodrick opened 2 years ago

hrodrick commented 2 years ago

As discussed on the Android Roundtable of 01/12/2021 there will be very useful to create an application's flow using a single activity structure with a bunch of fragments for each section on the flow, using the Navigation component and SafeArgs plugin to navigate through the flow. And a shared and specifics viewModels with some logic.

The objetive is to have a common way of app's navigation which sohuld be easy to replicate/modify for the specific project's requirements. So every project which starts from this base can have the same standard for navigation.

Navigation: https://developer.android.com/guide/navigation SafeArgs: https://developer.android.com/guide/navigation/navigation-pass-data