2.4.5. Graphical Layout Editor

When you first create a project, the IDE opens the app’s fragment_main.xml file in the Graphical Layout editor. If you have not already done so, close this file then double click activity_main.xml file in your app’s res/layout folder to open the Graphical Layout editor (Fig. 2.12).

Image

Fig. 2.12 | Graphical Layout editor view of the app’s default GUI.

Selecting the Screen Type for GUI Design

Android devices can run on many types of devices. In this chapter, you’ll design an Android phone GUI. As we mentioned in the Before You Begin section, we use an AVD that emulates the Google Nexus 4 phone for this purpose. The ...

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.