I am thinking of implementing one screen with Activity
and all other sreens with Fragments
and managing all the fragments thru the activity
.
Is it a good idea? and my answer is NO but still I want to know more clearly about this thought.
What are the pros and cons of the idea?
Note:
Please don't give me the link for fragment and activity.
EDIT:
Here is something over Fragments and activity:
Pros:
- Fragments are meant to be used with activities as a sub activity.
- Fragments are not the replacement for activities.
- Fragments are meant for reusability(Need to know in what way reusability can be achieved.).
- Fragments are the best way to write code to support both tablets and phones.
Cons:
- We need to implement the interface to get the data from fragments.
- For dialog we have to go a long way to show it.
Why should we use fragments if we are not considering tablets? What is the starting time difference between activity and fragment?