View Components

Lollipop’s new material design guidelines specify a few new kinds of view components. The Android team provides implementations of many of these components. Let’s take a look at a few of the views you are likely to run into.


The first new widget is a frame for other widgets: cards (Figure 33.10).

Figure 33.10  Cards


A card is a container for other kinds of content. It is elevated slightly, with a shadow behind it, and its corners are slightly rounded.

This is not a design book, so we cannot provide advice on when and where to use cards. (See Google’s material design documentation on the ...

Get Android Programming: The Big Nerd Ranch Guide, 2nd Edition now with O’Reilly online learning.

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