summaryrefslogtreecommitdiffstats
path: root/docs/html/guide/topics/resources/available-resources.jd
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2010-05-10 09:56:19 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-05-10 09:56:19 -0700
commitd98da9cfbb238ee83a8612710a2a71309d1e44f5 (patch)
treeb69addc91ee21812ed2b8763321a58be8f38a6ee /docs/html/guide/topics/resources/available-resources.jd
parent6aa19bb7d28395dede5943d6f67fea614c5b407d (diff)
parent2e9ec96d9eb24bcc3893b449fcecf803628f1aa8 (diff)
downloadframeworks_base-d98da9cfbb238ee83a8612710a2a71309d1e44f5.zip
frameworks_base-d98da9cfbb238ee83a8612710a2a71309d1e44f5.tar.gz
frameworks_base-d98da9cfbb238ee83a8612710a2a71309d1e44f5.tar.bz2
am 2e9ec96d: am 3d3853a6: am d2f2a80e: am c6cb8a78: docs: revisions to the new resources doc based on editorial feedback plus some fixes to resource references and other misc revisions
Diffstat (limited to 'docs/html/guide/topics/resources/available-resources.jd')
-rw-r--r--docs/html/guide/topics/resources/available-resources.jd17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/html/guide/topics/resources/available-resources.jd b/docs/html/guide/topics/resources/available-resources.jd
index 19babee..09c55a5 100644
--- a/docs/html/guide/topics/resources/available-resources.jd
+++ b/docs/html/guide/topics/resources/available-resources.jd
@@ -18,6 +18,23 @@ of application resource that you can provide in your resources directory ({@code
<p>Here's a brief summary of each resource type:</p>
+<div class="sidebox-wrapper">
+<div class="sidebox">
+<h2>{@code R.id} Is Not a Resource</h2>
+
+<p>You will often use an {@code R.id} integer to handle {@link android.view.View} objects in
+your UI. Although the {@code id} is a subclass of the {@code R} class, it is not considered a
+"resource" because it is not a reference to an externalized application resource. The {@code id}
+is simply a unique identifier that allows you to handle elements in your UI by instantiating
+objects with {@link android.app.Activity#findViewById(int) findViewById()}.</p>
+
+<p>For information about using {@code R.id} with your UI, see <a
+href="{@docRoot}guide/topics/ui/declaring-layout.html#attributes">Declaring Layout</a>.</p>
+
+</div>
+</div>
+
+
<dl>
<dt><a href="{@docRoot}guide/topics/resources/animation-resource.html">Animation Resources</a></dt>
<dd>Define pre-determined animations.<br/>