July 2015
Beginner to intermediate
600 pages
18h 59m
English
So far, you have created layouts by typing XML. In this section, you will use the graphical layout tool. In particular, you are going to make an alternative landscape layout for CrimeFragment.
Most built-in layout classes, like LinearLayout, will automatically stretch and resize themselves and their children on rotation. Sometimes, however, the default resizing does not make the best use of the available space.
Run CriminalIntent and rotate the device to see the CrimeFragment layout in landscape orientation (Figure 8.4).
Figure 8.4 CrimeFragment in landscape mode
The date button becomes ...
Read now
Unlock full access