Should I use activities or fragments?

Should I use activities or fragments?
Answer
By storing the information of interest within the Activity, the Fragment for each screen can simply access the object reference through the Activity. Activities are the full screen components in the app with the toolbar, everything else are preferably Fragments.
 

Tìm kiếm

Back
Top