am cdd76cf5: am 0d1e38ef: cherrypick Change-Id: I58e21f636e15d4b1522b66b16ffd48f1eb31308c docs: misc fixes to the drawable reference
* commit 'cdd76cf5873ee709d04ffeda6e56c5f15bfa1bba':
cherrypick Change-Id: I58e21f636e15d4b1522b66b16ffd48f1eb31308c docs: misc fixes to the drawable reference
diff --git a/docs/html/guide/topics/resources/drawable-resource.jd b/docs/html/guide/topics/resources/drawable-resource.jd
index 129462e..d9f619f 100644
--- a/docs/html/guide/topics/resources/drawable-resource.jd
+++ b/docs/html/guide/topics/resources/drawable-resource.jd
@@ -474,7 +474,7 @@
android:right="<em>dimension</em>"
android:bottom="<em>dimension</em>"
android:left="<em>dimension</em>" />
-</selector>
+</layer-list>
</pre>
</dd>
@@ -906,7 +906,7 @@
android:right="<em>dimension</em>"
android:bottom="<em>dimension</em>"
android:left="<em>dimension</em>" />
-</selector>
+</transition>
</pre>
</dd>
@@ -926,8 +926,8 @@
</dl>
</dd>
<dt id="transition-item-element"><code><item></code></dt>
- <dd>Defines a drawable to place in the layer drawable, in a position defined by its attributes.
-Must be a child of a <code><selector></code> element. Accepts child {@code <bitmap>}
+ <dd>Defines a drawable to use as part of the drawable transition.
+Must be a child of a <code><transition></code> element. Accepts child {@code <bitmap>}
elements.
<p class="caps">attributes:</p>
<dl class="atn-list">
@@ -963,7 +963,7 @@
<transition xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/on" />
<item android:drawable="@drawable/off" />
-</layer-list>
+</transition>
</pre>
<p>This layout XML applies the drawable to a View:</p>
@@ -1226,11 +1226,11 @@
<dd>XML file saved at <code>res/drawable/clip.xml</code>:
<pre>
<?xml version="1.0" encoding="utf-8"?>
-<shape xmlns:android="http://schemas.android.com/apk/res/android"
+<clip xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/android"
android:clipOrientation="horizontal"
android:gravity="left" />
-</shape>
+</clip>
</pre>
<p>The following layout XML applies the clip drawable to a View:</p>
<pre>