From 52078255dacabe9b779613b032a4dc3706b2b5d3 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 14 Dec 2010 11:00:44 -0800 Subject: cherrypick Change-Id: I7a0fc4863c547bd40051437a834bb50373415abd docs: fix bug 3216642 Change-Id: Ic42d97d4e67a09dc4e366862e2b72ff92f152b85 --- docs/html/guide/topics/resources/drawable-resource.jd | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/html/guide/topics/resources/drawable-resource.jd b/docs/html/guide/topics/resources/drawable-resource.jd index 79ce669..129462e 100644 --- a/docs/html/guide/topics/resources/drawable-resource.jd +++ b/docs/html/guide/topics/resources/drawable-resource.jd @@ -32,12 +32,16 @@ android.graphics.drawable.LayerDrawable}. for different states (for example, to use a different image when a button is pressed). Creates a {@link android.graphics.drawable.StateListDrawable}.
Level List
-
An XML file that defines a Drawable that manages a number of alternate Drawables, each +
An XML file that defines a drawable that manages a number of alternate Drawables, each assigned a maximum numerical value. Creates a {@link android.graphics.drawable.LevelListDrawable}.
Transition Drawable
-
An XML file that defines a Drawable that can cross-fade between two drawable resources. +
An XML file that defines a drawable that can cross-fade between two drawable resources. Creates a {@link android.graphics.drawable.TransitionDrawable}.
+
Inset Drawable
+
An XML file that defines a drawable that insets another drawable by a specified distance. +This is useful when a View needs a background drawble that is smaller than the View's actual +bounds.
Clip Drawable
An XML file that defines a drawable that clips another Drawable based on this Drawable's current level value. Creates a {@link android.graphics.drawable.ClipDrawable}.
@@ -893,7 +897,7 @@ In XML: @[package:]drawable/filename
 <?xml version="1.0" encoding="utf-8"?>
-<layer-list
+<transition
 xmlns:android="http://schemas.android.com/apk/res/android" >
     <item
         android:drawable="@[package:]drawable/drawable_resource"
@@ -994,13 +998,10 @@ drawable.startTransition(500);
 
 
 
-
-
-
 

Inset Drawable

-

A drawable defined in XML that insets another drawable by a specified distance. This is used when -a View needs a background that is smaller than the View's actual bounds.

+

A drawable defined in XML that insets another drawable by a specified distance. This is useful +when a View needs a background that is smaller than the View's actual bounds.

-- cgit v1.1