O'Reilly logo

Creating Dynamic UI with Android Fragments by Jim Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 traditional Dialog class
  • Wrapping an existing Dialog class in a DialogFragment ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required