Actually, at first everything is clear - we have 3 parts - model, present, view, but I have questions about the implementation of each of them in android.
As far as I understand from reading earlier
All layouts are replaced with fragments, so we have only 1 layout with 1 element - FrameLayout (this is the most unusual for me, I understand logically, but still it seems that something is wrong here)
View
- MainActivity class with fragment replacement method
- Class for each fragment with initial settings of type onClickListner'ov in onCreate'e and methods of type makeToast
Present
- For each fragment of the present
- Can there be additional classes in this part? For example the class responsible for working with user data?
Model
- I do not understand a bit how to implement it so that the data would be available in all present? Maybe I misunderstand how this part should be implemented and the model should not store anything in itself, but only receive data from other places (SharedPreferences, SQLite, etc.)? In this case, in each gift you just need to create a new model?