Starting CriminalIntent
In this chapter, you are going to start on the detail part of CriminalIntent. Figure 9.4 shows you what CriminalIntent will look like at the end of this chapter.
Figure 9.4 CriminalIntent at the end of this chapter
The screen shown in Figure 9.4 will be managed by a fragment named CrimeDetailFragment. An instance of CrimeDetailFragment will be hosted by an activity named MainActivity.
For now, think of hosting as the activity providing a spot in its view hierarchy to contain the fragment and its view (Figure 9.5). A fragment is incapable of getting a view onscreen itself. Only when it is inserted ...
Get Android Programming: The Big Nerd Ranch Guide, 5th 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.