O'Reilly logo

Android™ How to Program, Second Edition by Abbey Deitel, Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required