O'Reilly logo

The Android Developer’s Cookbook: Building Applications with the Android SDK by Nelson To, James Steele

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

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

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