7. Advanced User Interface Techniques

The landscape of Android-powered devices has changed drastically in the last few years. Where phones powered by Android once dominated, the advent of high-resolution small screens, watches, tablets, and even TV screens (through the use of Google TV) have taken applications and their layouts to new heights. This chapter describes creating a custom view, animation, accessing the accessibility features, using gestures, and drawing 3D images. It then discusses tablets and how to display multiple fragments, using an activity wrapper, and using dialog fragments.

Android Custom View

As discussed in Chapter 5, “User Interface Layout,” Android has two types of views: View objects and ViewGroup objects. A custom view ...

Get The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.