Reviewing the Resources Directory Structure

In summary, Listing 3–35 offers a quick look at the overall resources directory structure.

Listing 3–35. Resource Directories

/res/values/strings.xml            /colors.xml            /dimens.xml            /attrs.xml            /styles.xml     /drawable/*.png              /*.jpg              /*.gif              /*.9.png     /anim/*.xml     /layout/*.xml     /raw/*.*     /xml/*.xml /assets/*.*/*.*   

NOTE: Because it's not under the /res directory, only the /assets directory can contain an arbitrary list of subdirectories. Every other directory can only have files at the level of that directory and no deeper. This is how R.java generates identifiers for those files.

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.