Each of the documents in this section describe the usage, format and syntax for a certain typeof 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
res/anim/
And accessed from
R.anim
Class.
Frame animations are saved in
res/drawable/
And accessed from
R.drawable
Class.
-
Color State List Resource
-
Define a color resources that changes based on the View state.
Saved in
res/color/
And accessed from
R.color
Class.
-
Drawable Resources
-
Define various graphics with bitmaps or XML.
Saved in
res/drawable/
And accessed from
R.drawable
Class.
-
Layout Resource
-
Define the layout for your application UI.
Saved in
res/layout/
And accessed from
R.layout
Class.
-
Menu Resource
-
Define the contents of your application menus.
Saved in
res/menu/
And accessed from
R.menu
Class.
-
String Resources
-
Define strings, string arrays, and plurals (and include string formatting and styling ).
Saved in
res/values/
And accessed from
R.string
,
R.array
, And
R.plurals
Classes.
-
Style Resource
-
Define the look and format for UI elements.
Saved in
res/values/
And accessed from
R.style
Class.
-
More Resource Types
-
Define values such as booleans, integers, dimensions, colors, and other arrays.
Saved in
res/values/
But each accessed from unique
R
Sub-classes (such
R.bool
,
R.integer
,
R.dimen
, Etc .).