Resource Types
SEE ALSO
- Providing Resources
- Accessing Resources
Each of the documents in this section describe the usage, format and syntax for a certain type of application resource that you can provide in your resources directory (
res/
).
Here's a brief summary of each resource type:
- Animation Resources
-
Define pre-determined animations.
Tween animations are saved in
and accessed from theres/anim/
R.anim
class.
Frame animations are saved in
and accessed from theres/drawable/
class.R.drawable
Color State List Resource -
Define a color resources that changes based on the View state.
Saved in
and accessed from theres/color/
class.R.color
Drawable Resources -
Define various graphics with bitmaps or XML.
Saved in
and accessed from theres/drawable/
class.R.drawable
Layout Resource -
Define the layout for your application UI.
Saved in
and accessed from theres/layout/
class.R.layout
Menu Resource -
Define the contents of your application menus.
Saved in
and accessed from theres/menu/
class.R.menu
String Resources -
Define strings, string arrays, and plurals (and include string formatting and styling).
Saved in
and accessed from theres/values/
,R.string
, andR.array
classes.R.plurals
Style Resource -
Define the look and format for UI elements.
Saved in
and accessed from theres/values/
class.R.style
More Resource Types -
Define values such as booleans, integers, dimensions, colors, and other arrays.
Saved in
but each accessed from uniqueres/values/
sub-classes (such asR
,R.bool
,R.integer
, etc.).R.dimen