blob: 19babee6c9220b3d27a105723e1f48c5af64161f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
page.title=Resource Types
parent.title=Application Resources
parent.link=index.html
@jd:body
<div id="qv-wrapper">
<div id="qv">
<h2>See also</h2>
<ol>
<li><a href="providing-resources.html">Providing Resources</a></li>
<li><a href="accessing-resources.html">Accessing Resources</a></li>
</ol>
</div>
</div>
<p>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 ({@code res/}).</p>
<p>Here's a brief summary of each resource type:</p>
<dl>
<dt><a href="{@docRoot}guide/topics/resources/animation-resource.html">Animation Resources</a></dt>
<dd>Define pre-determined animations.<br/>
Tween animations are saved in {@code res/anim/} and accessed from the {@code R.anim} class.<br/>
Frame animations are saved in {@code res/drawable/} and accessed from the {@code R.drawable} class.</dd>
<dt><a href="{@docRoot}guide/topics/resources/color-list-resource.html">Color State List Resource</a></dt>
<dd>Define a color resources that changes based on the View state.<br/>
Saved in {@code res/color/} and accessed from the {@code R.color} class.</dd>
<dt><a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a></dt>
<dd>Define various graphics with bitmaps or XML.<br/>
Saved in {@code res/drawable/} and accessed from the {@code R.drawable} class.</dd>
<dt><a href="{@docRoot}guide/topics/resources/layout-resource.html">Layout Resource</a></dt>
<dd>Define the layout for your application UI.<br/>
Saved in {@code res/layout/} and accessed from the {@code R.layout} class.</dd>
<dt><a href="{@docRoot}guide/topics/resources/menu-resource.html">Menu Resource</a></dt>
<dd>Define the contents of your application menus.<br/>
Saved in {@code res/menu/} and accessed from the {@code R.menu} class.</dd>
<dt><a href="{@docRoot}guide/topics/resources/string-resource.html">String Resources</a></dt>
<dd>Define strings, string arrays, and plurals (and include string formatting and styling).<br/>
Saved in {@code res/values/} and accessed from the {@code R.string}, {@code R.array},
and {@code R.plurals} classes.</dd>
<dt><a href="{@docRoot}guide/topics/resources/style-resource.html">Style Resource</a></dt>
<dd>Define the look and format for UI elements.<br/>
Saved in {@code res/values/} and accessed from the {@code R.style} class.</dd>
<dt><a href="{@docRoot}guide/topics/resources/more-resources.html">More Resource Types</a></dt>
<dd>Define values such as booleans, integers, dimensions, colors, and other arrays.<br/>
Saved in {@code res/values/} but each accessed from unique {@code R} sub-classes (such as {@code
R.bool}, {@code R.integer}, {@code R.dimen}, etc.).</dd>
</dl>
|