5. User Interface Layout

The Android UI consists of screen views, screen touch events, and key presses. The framework for specifying the UI is constructed to support the various Android devices. This chapter focuses on the utilization of this framework for the initial graphical layout and its changes. Chapter 6, “User Interface Events,” handles key presses and gestures.

Resource Directories and General Attributes

The UI display uses developer-generated resource files, some of which are discussed in Chapter 2, “Application Basics: Activities and Intents,” in the context of the directory structure of an Android project. For completeness, the entire set of resource directories is summarized here:

res/anim/—Frame-by-frame animation or tweened ...

Get The Android™ Developer’s Cookbook: Building Applications with the Android SDK, 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.