Material design guidelines mention that cards can be constructed using blocks of content which include:
- An optional header
- A primary title
- Rich media
- Supporting text
- Actions
These blocks can be organized to promote different types of content. Let’s consider some possible combinations of content blocks to build cards and how they can be implemented using ConstraintLayout.
1 Media 16:9 and supporting text
2 Avatar, media 16:9, supporting text and action buttons
3 Avatar, media 16:9 and action buttons
You can find source code for all the examples above on GitHub. Here’s the link to next part.