I am new to Android and I have an Android app that starts now. These are the types of stored user input with a specific date / time. And view the previous saved data to the user. Also save the setting information.
It may look simple, but it will cost a lot of interface components. I recently learned โActivityโ and โFragmentโ and preferred to use one class of core activity, and the remnants will be built using fragments.
I understand that Fragment is corporate with a life cycle of activities and intends to use it as reusable for other activities.
But what I want to know, as I mentioned in the question,
- Is this cost effective to use Activity for UI View?
- When used with Fragment for UI View, it can be better in performance, but reliability (for example, manually maintaining data states when rotating with Activity and Fragment with each other, but if using Activity, it will be less than user service) is more for use fragment?
I need advice on my question.
source share