Chapter 20. Activity fragments

 

This chapter covers

  • Fragment lifecycle
  • Background fragments
  • The fragment manager
  • Fragment transactions
  • The fragment back stack
  • The Android Compatibility Package

 

The larger screen size of tablets, which allows more content to be displayed than is possible on smaller form-factor devices such as smartphones, introduced the need for new user interface and related application components.

Recall that an Activity is an application component that is typically given a window to draw a user interface. This window typically fills the screen, which works fine on the smaller form-factor devices. Although the same approach can be used for larger-screen devices, you may have to rely on complex custom views or hierarchies, ...

Get Android in Action, Third Edition 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.