Chapter 3. Fragment Lifecycle and Specialization
This chapter discusses the relationship of the lifecycle of fragments to that of activities, and demonstrates the appropriate programming actions at the various points in the lifecycle. The special purpose fragment classes ListFragment
and DialogFragment
are introduced with coverage of their use and how their behavior in the activity lifecycle differs from that of standard fragments.
The following topics are covered in this chapter:
- Fragment setup/display event sequence
- Fragment teardown/hide event sequence
- Working with the
ListFragment
class - Working with the
DialogFragment
class - Interacting with a
DialogFragment
class as a traditionalDialog
class - Wrapping an existing
Dialog
class in aDialogFragment ...
Get Creating Dynamic UI with Android Fragments 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.