2.4.6. The Default GUI

The default GUI (Fig. 2.12) for a Blank Page app consists of a FrameLayout (named container) with a light background (specified by the theme we chose when creating the project). A FrameLayout is designed to display only one GUI component—typically a layout that contains many other GUI components. In this app, you’ll use a RelativeLayout that arranges GUI components relative to one another or relative to the layout itself—for example, you can specify that a GUI component should appear below another GUI component and centered horizontally within the RelativeLayout. A TextView displays text. We’ll say more about each of these in Section 2.5.

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.