O'Reilly logo

The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition by Nelson To, Ronan Schwarz, James Steele, Phil Dutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required