You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
According to this article, Google suggested using only one Activity:
Today we are introducing the Navigation component as a framework for structuring your in-app UI, with a focus on making a single-Activity app the preferred architecture. With out of the box support for Fragments, you get all of the Architecture Components benefits such as Lifecycle and ViewModel while allowing Navigation to handle the complexity of FragmentTransactions for you.
So my question is, why didn't you follow the advice yourself gave?
The text was updated successfully, but these errors were encountered:
It does look a bit counter-intuitive that the "master-detail" view is split into 2 activities whereas the less related views are 2 fragments of the same view...
@tiembo@gderaco Navigation within "single-activity" is really a good way to control application route and move direction, do it also, however, my point of view is that activity should capsulate "business" group. A typical example is that user-shop-buying.
I will user-profile with edit, list, view in one activity.
For shop, list, detail and gallery of item if needed in one activity.
Buying process in one activity.
Flexible with multi-single-activity is my variant of jetpack. This is my opinion
According to this article, Google suggested using only one Activity:
Today we are introducing the Navigation component as a framework for structuring your in-app UI, with a focus on making a single-Activity app the preferred architecture. With out of the box support for Fragments, you get all of the Architecture Components benefits such as Lifecycle and ViewModel while allowing Navigation to handle the complexity of FragmentTransactions for you.
So my question is, why didn't you follow the advice yourself gave?
The text was updated successfully, but these errors were encountered: