Chapter 5. Beautiful Layouts with CardView and ScrollView

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

In this chapter, we will cover the following topics:

  • Compiling a quick summary of UI attributes
  • Building our prettiest layout so far using ScrollView and CardView
  • Switching and customizing themes
  • Creating and using a tablet emulator

Let's start by recapping some attributes.

Attributes – a quick summary

In the last few chapters, we have used ...

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