March 2013
Beginner to intermediate
580 pages
16h 11m
English
Now that the model layer is updated, you can turn to updating the view layer. In particular, CrimeFragment will display a thumbnail-sized photo in an ImageView.
Figure 20.7 CrimeFragment with new ImageView

Return to layout/fragment_crime.xml and add the ImageView shown in Figure 20.8.
Figure 20.8 CrimeFragment layout with ImageView (layout/fragment_crime.xml)

You also need an ImageView in the landscape layout, as shown in Figure 20.9.
Figure 20.9 Landscape layout with ImageView (layout-land/fragment_crime.xml ...
Read now
Unlock full access