diff --git a/docs/html/guide/topics/resources/drawable-resource.jd b/docs/html/guide/topics/resources/drawable-resource.jd index 129462e5cb312..d9f619f2b7489 100644 --- a/docs/html/guide/topics/resources/drawable-resource.jd +++ b/docs/html/guide/topics/resources/drawable-resource.jd @@ -474,7 +474,7 @@ In XML: @[package:]drawable/filename android:right="dimension" android:bottom="dimension" android:left="dimension" /> -</selector> +</layer-list> @@ -906,7 +906,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" > android:right="dimension" android:bottom="dimension" android:left="dimension" /> -</selector> +</transition> @@ -926,8 +926,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
-
Defines a drawable to place in the layer drawable, in a position defined by its attributes. -Must be a child of a <selector> element. Accepts child {@code <bitmap>} +
Defines a drawable to use as part of the drawable transition. +Must be a child of a <transition> element. Accepts child {@code <bitmap>} elements.

attributes:

@@ -963,7 +963,7 @@ View.findViewById()} or {@link android.app.Activity#findViewById(int) Activity.f <transition xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/on" /> <item android:drawable="@drawable/off" /> -</layer-list> +</transition>

This layout XML applies the drawable to a View:

@@ -1226,11 +1226,11 @@ the right edge, a right gravity clips the left edge, and neither clips both edge
XML file saved at res/drawable/clip.xml:
 <?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>
 

The following layout XML applies the clip drawable to a View: