4.4.2. activity_main.xml Overview

As in Chapter 3, this app’s activity_main.xml layout uses a GridLayout (Fig. 4.11). In this app, the GridLayout contains three rows and one column. Figure 4.12 shows the names of the app’s GUI components.

Image

Fig. 4.11 | Rows and columns in the Twitter Searches app’s GridLayout.

Image

Fig. 4.12 | Twitter Searches GUI’s components labeled with their Id property values.

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.