Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)

(gtxtreme123) #1

Chapter 17  Two-Pane Master-Detail Interfaces


Run CriminalIntent on a tablet device and confirm that you have two panes (Figure 17.5). (You will
need to add a crime to see the panes.) Note that the larger detail pane is empty and that pressing a list
item will not display the crime’s details. You will hook up the detail container later in the chapter.


Figure 17.5  Two-pane layout on a tablet


As currently written, CrimeListActivity will also inflate the two-pane interface when running on a
phone. In the next section, you will fix that using an alias resource.

Free download pdf