Summary
This chapter introduced the Fragment
class and its related classes for the manager, transactions, and subclasses. This is a summary of what’s been covered in this chapter:
- The
Fragment
class, what it does, and how to use it. - Why fragments cannot be used without being attached to one and only one activity.
- That although fragments can be instantiated with a static factory method such as
newInstance()
, you must always have a default constructor and a way to save initialization values into an initialization arguments bundle. - The lifecycle of a fragment and how it is intertwined with the lifecycle of the activity that owns the fragment.
FragmentManager
and its features.- Managing device configurations using fragments.
- Combining fragments into ...
Get Pro Android 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.