10. Working with Fragments

Traditionally, each screen within an Android application was tied to a specific Activity class. However, in Android 3.0 (Honeycomb), the concept of a user interface component called a Fragment was introduced. It was then included in the Android Support library for use with Android 1.6 (API Level 4) and up. Fragments decouple user interface behavior from a specific Activity lifecycle. Instead, Activity classes can mix and match user interface components to create more flexible user interfaces for the Android devices of the future.

Understanding Fragments

Fragments were added to the Android SDK at a crucial time when Android consumers were experiencing an explosion in the variety of Android devices coming to market. We ...

Get Android Wireless Application Development Volume I: Android Essentials, 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.