Chapter 5. Beautiful Layouts with CardView and ScrollView

This is the last chapter on layouts before we spend some time focusing on Java and object-oriented programming. We will formalize our learning on some of the different attributes we have already met, and we will also introduce two more cool layouts; the ScrollView and the CardView. To finish the chapter off, we will run the CardView project on a tablet emulator.

In this chapter, we will cover the following:

  • Compile a quick summary of UI attributes
  • Build our prettiest layout so far using ScrollView and CardView
  • Switch and customize themes
  • Create and use a tablet emulator

Let's start by recapping some attributes.

Attributes quick summary

In the last few chapters, we have used and discussed quite ...

Get Android Programming for Beginners - 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.