am 52078255: cherrypick Change-Id: I7a0fc4863c547bd40051437a834bb50373415abd docs: fix bug 3216642
* commit '52078255dacabe9b779613b032a4dc3706b2b5d3': cherrypick Change-Id: I7a0fc4863c547bd40051437a834bb50373415abd docs: fix bug 3216642
This commit is contained in:
@@ -32,12 +32,16 @@ android.graphics.drawable.LayerDrawable}.</dd>
|
|||||||
for different states (for example, to use a different image when a button is pressed).
|
for different states (for example, to use a different image when a button is pressed).
|
||||||
Creates a {@link android.graphics.drawable.StateListDrawable}.</dd>
|
Creates a {@link android.graphics.drawable.StateListDrawable}.</dd>
|
||||||
<dt><a href="#LevelList">Level List</a></dt>
|
<dt><a href="#LevelList">Level List</a></dt>
|
||||||
<dd>An XML file that defines a Drawable that manages a number of alternate Drawables, each
|
<dd>An XML file that defines a drawable that manages a number of alternate Drawables, each
|
||||||
assigned a maximum numerical value. Creates a {@link
|
assigned a maximum numerical value. Creates a {@link
|
||||||
android.graphics.drawable.LevelListDrawable}.</dd>
|
android.graphics.drawable.LevelListDrawable}.</dd>
|
||||||
<dt><a href="#Transition">Transition Drawable</a></dt>
|
<dt><a href="#Transition">Transition Drawable</a></dt>
|
||||||
<dd>An XML file that defines a Drawable that can cross-fade between two drawable resources.
|
<dd>An XML file that defines a drawable that can cross-fade between two drawable resources.
|
||||||
Creates a {@link android.graphics.drawable.TransitionDrawable}.</dd>
|
Creates a {@link android.graphics.drawable.TransitionDrawable}.</dd>
|
||||||
|
<dt><a href="#Inset">Inset Drawable</a></dt>
|
||||||
|
<dd>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.</dd>
|
||||||
<dt><a href="#Clip">Clip Drawable</a></dt>
|
<dt><a href="#Clip">Clip Drawable</a></dt>
|
||||||
<dd>An XML file that defines a drawable that clips another Drawable based on this Drawable's
|
<dd>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}.</dd>
|
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>
|
|||||||
<dd>
|
<dd>
|
||||||
<pre class="stx">
|
<pre class="stx">
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<<a href="#transition-element">layer-list</a>
|
<<a href="#transition-element">transition</a>
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android" >
|
xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
<<a href="#transition-item-element">item</a>
|
<<a href="#transition-item-element">item</a>
|
||||||
android:drawable="@[package:]drawable/<em>drawable_resource</em>"
|
android:drawable="@[package:]drawable/<em>drawable_resource</em>"
|
||||||
@@ -994,13 +998,10 @@ drawable.startTransition(500);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h2 id="Inset">Inset Drawable</h2>
|
<h2 id="Inset">Inset Drawable</h2>
|
||||||
|
|
||||||
<p>A drawable defined in XML that insets another drawable by a specified distance. This is used when
|
<p>A drawable defined in XML that insets another drawable by a specified distance. This is useful
|
||||||
a View needs a background that is smaller than the View's actual bounds.</p>
|
when a View needs a background that is smaller than the View's actual bounds.</p>
|
||||||
|
|
||||||
<dl class="xml">
|
<dl class="xml">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user