July 2015
Beginner to intermediate
600 pages
18h 59m
English
When the Fragment class was introduced in Honeycomb, the Activity class was changed to include a piece called the FragmentManager. The FragmentManager is responsible for managing your fragments and adding their views to the activity’s view hierarchy (Figure 7.17).
The FragmentManager handles two things: a list of fragments and a back stack of fragment transactions (which you will learn about shortly).
Figure 7.17 The FragmentManager
For CriminalIntent, you will only be concerned with the FragmentManager’s list of fragments.
To add a fragment to an activity in code, you make ...
Read now
Unlock full access