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