More on Layout Attributes

Let’s add a few more tweaks to the design of list_item_crime.xml and, in the process, answer some lingering questions you might have about widgets and attributes.

Navigate back to the Design view of list_item_crime.xml. Select crime_title and adjust some of the attributes in the properties view.

Click the disclosure arrow next to textAppearance to reveal a set of text and font attributes. Update the textColor attribute to @android:color/black (Figure 9.27).

Figure 9.27  Updating the title color

Figure shows textcolour reading, @android:color/black.

Next, set the textSize attribute to 18sp. Run CriminalIntent and be amazed at how much better everything ...

Get Android Programming: The Big Nerd Ranch Guide, Third 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.