See also
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 inres/anim/
and accessed from theR.anim
class.
Frame animations are saved inres/drawable/
and accessed from theR.drawable
class. - Color State List Resource
-
Define a color resources that changes based on the View state.
Saved inres/color/
and accessed from theR.color
class. - Drawable Resources
-
Define various graphics with bitmaps or XML.
Saved inres/drawable/
and accessed from theR.drawable
class. - Layout Resource
-
Define the layout for your application UI.
Saved inres/layout/
and accessed from theR.layout
class. - Menu Resource
-
Define the contents of your application menus.
Saved inres/menu/
and accessed from theR.menu
class. - String Resources
-
Define strings, string arrays, and plurals (and include string formatting and styling).
Saved inres/values/
and accessed from theR.string
,R.array
, andR.plurals
classes. - Style Resource
-
Define the look and format for UI elements.
Saved inres/values/
and accessed from theR.style
class. - More Resource Types
-
Define values such as booleans, integers, dimensions, colors, and other arrays.
Saved inres/values/
but each accessed from uniqueR
sub-classes (such asR.bool
,R.integer
,R.dimen
, etc.).