Enumerating Key Android Resources

Now that you've been through the basics of resources, let's enumerate some of the other key resources that Android supports, their XML representations, and the way they're used in Java code. (You can use this section as a quick reference as you write resource files for each resource.) To begin, take a quick glance at the types of resources and what they are used for in Table 3–1.

Image

Image

Each of the resources specified in this table is further elaborated in the following sections with XML and Java code snippets.

NOTE: ...

Get Pro Android 4 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.