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 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.