10 Creating User Interfaces with Layouts and Widgets

In this chapter, you will learn more about layouts and widgets while adding some style to your list items in the RecyclerView. You will also learn how to use the graphical layout editor to arrange widgets within a ConstraintLayout. Figure 10.1 shows what CrimeListFragment’s view will look like once you chisel down your existing app to build up your masterpiece.

Figure 10.1  CriminalIntent, now with beautiful pictures

CriminalIntent, now with beautiful pictures

In previous chapters you used nested layout hierarchies to arrange your widgets. For example, the layout/activity_main.xml file you created for GeoQuiz ...

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

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