4.4.3. Adding the GridLayout and Components

Using the techniques you learned in Chapter 3, you’ll build the GUI in Figs. 4.114.12. All of the steps in the following subsections assume that you’re working with the layout in the IDE’s Graphical Layout editor. As a reminder, it’s often easiest to select a particular GUI component in the Outline window.

You’ll start with the basic layout and controls, then customize the controls’ properties to complete the design. Use the Outline window to add components to the proper rows of the GridLayout. As you add GUI components, set their Ids as shown in Fig. 4.12—there are several components in this layout that do not require Ids, as they’re never referenced from the app’s Java code. Also, remember to define ...

Get Android™ How to Program, Second 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.