4. User Interface Layout
The Android user interface (UI) consists of screen views, screen touch events, and key presses. The framework for specifying the UI is constructed to support the various different Android devices. This chapter focuses on the utilization of this framework for the initial graphical layout and its changes. Chapter 5, “User Interface Events,” handles key presses and gestures.
Resource Directories and General Attributes
The UI display utilizes 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 ...
Get The Android Developer’s Cookbook: Building Applications with the Android SDK 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.