Chapter    5

Building More Advanced UI Layouts

In the previous chapters we reviewed many of the standard layouts provided with Android, which cover a broad array of possible UI approaches. When the stock layouts offered by Android don't quite do what you want, where do you turn? In this chapter, we will quickly explore how Android provides you with the ability to build your own custom layouts and manage the related adapters for populating them with useful data.

Creating Custom Adapters

Standard adapters in Android are easy to use, but they have some limitations. To address this, Android provides an abstract class called BaseAdapter that you can extend if you need a custom adapter. You would use a custom adapter if you had special data-management ...

Get Pro Android 5, Fifth Edition now with O’Reilly online learning.

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