Skip to content

Commit 5207825

Browse files
committed
cherrypick Change-Id: I7a0fc4863c547bd40051437a834bb50373415abd
docs: fix bug 3216642 Change-Id: Ic42d97d4e67a09dc4e366862e2b72ff92f152b85
1 parent 6390fa6 commit 5207825

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/html/guide/topics/resources/drawable-resource.jd

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ android.graphics.drawable.LayerDrawable}.</dd>
3232
for different states (for example, to use a different image when a button is pressed).
3333
Creates a {@link android.graphics.drawable.StateListDrawable}.</dd>
3434
<dt><a href="#LevelList">Level List</a></dt>
35-
<dd>An XML file that defines a Drawable that manages a number of alternate Drawables, each
35+
<dd>An XML file that defines a drawable that manages a number of alternate Drawables, each
3636
assigned a maximum numerical value. Creates a {@link
3737
android.graphics.drawable.LevelListDrawable}.</dd>
3838
<dt><a href="#Transition">Transition Drawable</a></dt>
39-
<dd>An XML file that defines a Drawable that can cross-fade between two drawable resources.
39+
<dd>An XML file that defines a drawable that can cross-fade between two drawable resources.
4040
Creates a {@link android.graphics.drawable.TransitionDrawable}.</dd>
41+
<dt><a href="#Inset">Inset Drawable</a></dt>
42+
<dd>An XML file that defines a drawable that insets another drawable by a specified distance.
43+
This is useful when a View needs a background drawble that is smaller than the View's actual
44+
bounds.</dd>
4145
<dt><a href="#Clip">Clip Drawable</a></dt>
4246
<dd>An XML file that defines a drawable that clips another Drawable based on this Drawable's
4347
current level value. Creates a {@link android.graphics.drawable.ClipDrawable}.</dd>
@@ -893,7 +897,7 @@ In XML: <code>@[<em>package</em>:]drawable/<em>filename</em></code>
893897
<dd>
894898
<pre class="stx">
895899
&lt;?xml version="1.0" encoding="utf-8"?>
896-
&lt;<a href="#transition-element">layer-list</a>
900+
&lt;<a href="#transition-element">transition</a>
897901
xmlns:android="http://schemas.android.com/apk/res/android" &gt;
898902
&lt;<a href="#transition-item-element">item</a>
899903
android:drawable="@[package:]drawable/<em>drawable_resource</em>"
@@ -994,13 +998,10 @@ drawable.startTransition(500);
994998

995999

9961000

997-
998-
999-
10001001
<h2 id="Inset">Inset Drawable</h2>
10011002

1002-
<p>A drawable defined in XML that insets another drawable by a specified distance. This is used when
1003-
a View needs a background that is smaller than the View's actual bounds.</p>
1003+
<p>A drawable defined in XML that insets another drawable by a specified distance. This is useful
1004+
when a View needs a background that is smaller than the View's actual bounds.</p>
10041005

10051006
<dl class="xml">
10061007

0 commit comments

Comments
 (0)