More on Layout Attributes

Now you are going to 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 its attributes: Expand the textAppearance section and set the textSize attribute to 18sp. Set the textColor attribute to @android:color/black (Figure 10.32).

Figure 10.32  Updating the title color and size

Updating the title color and size

You can type these values directly into the fields in the attributes pane, choose from the dropdown (in the case of textSize ...

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.