CardView is probably the most frequently used and flexible material component, and as such, there are a considerable number of guidelines concerning its structure, appearance, and function. Cards are described by Google as being entry points to more detailed information. This means that they should provide a small number of actions in the form of buttons, clickable images, and often, simply the card itself.

The way we used cards in the previous section, to create a list, is probably not the best example of how to employ CardView. Generally, with lists of items with very similar content, a simple divider provides a far less cluttered layout, and cards were used here just to demonstrate RecyclerViews in an easily digestible fashion.

Cards come ...

Get Learning Material Design 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.