Directory | Resource Type |
---|---|
anim/ | XML files that define property animations. They are saved in res/anim/ folder and accessed from the R.anim class. |
color/ | XML files that define a state list of colors. They are saved in res/color/ and accessed from the R.color class. |
drawable/ | Image files like .png, .jpg, .gif or XML files that are compiled into bitmaps, state lists, shapes, animation drawable. They are saved in res/drawable/ and accessed from the R.drawable class. |
layout/ | XML files that define a user interface layout. They are saved in res/layout/ and accessed from the R.layout class. |
menu/ | XML files that define application menus, such as an Options Menu, Context Menu, or Sub Menu. They are saved in res/menu/ and accessed from the R.menu class. |
raw/ | Arbitrary files to save in their raw form. You need to callResources.openRawResource() with the resource ID, which isR.raw.filename to open such raw files. |
values/ | XML files that contain simple values, such as strings, integers, and colors. For example, here are some filename conventions for resources you can create in this directory −
|
xml/ | Arbitrary XML files that can be read at runtime by callingResources.getXML(). You can save various configuration files here which will be used at run time. |