Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38137d7a authored by Scott Main's avatar Scott Main Committed by Android (Google) Code Review
Browse files

Merge "docs: lots of additions to the resources docs new drawable resources...

Merge "docs: lots of additions to the resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo
parents 468c82e4 dfe5c204
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7890,7 +7890,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
     * without resorting to another data structure.
     *
     * The specified key should be an id declared in the resources of the
     * application to ensure it is unique. Keys identified as belonging to
     * application to ensure it is unique (see the <a
     * href={@docRoot}guide/topics/resources/more-resources.html#Id">ID resource type</a>).
     * Keys identified as belonging to
     * the Android framework or not associated with any package will cause
     * an {@link IllegalArgumentException} to be thrown.
     *
+0 −17
Original line number Diff line number Diff line
@@ -18,23 +18,6 @@ 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/>
Loading