diff options
author | Scott Main <smain@google.com> | 2010-09-22 18:55:31 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2010-09-22 18:55:31 -0700 |
commit | 6ec3d4f0dcc30879076fd3dd859de5005c045a43 (patch) | |
tree | 97c62f1de4284f62e422e51423f35e52ca82e7eb /docs/html/guide/topics | |
parent | 73e150c886afc6cd92e8b065a58d61e0b2a098ed (diff) | |
download | frameworks_base-6ec3d4f0dcc30879076fd3dd859de5005c045a43.zip frameworks_base-6ec3d4f0dcc30879076fd3dd859de5005c045a43.tar.gz frameworks_base-6ec3d4f0dcc30879076fd3dd859de5005c045a43.tar.bz2 |
docs: add more info about state list drawable and onclick attribute to Button
bug:1062898
Change-Id: I633c38fc20a2ebf894237f86648cc0fdc9488b1a
Diffstat (limited to 'docs/html/guide/topics')
-rw-r--r-- | docs/html/guide/topics/resources/drawable-resource.jd | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/html/guide/topics/resources/drawable-resource.jd b/docs/html/guide/topics/resources/drawable-resource.jd index 035ddb9..9ebed56 100644 --- a/docs/html/guide/topics/resources/drawable-resource.jd +++ b/docs/html/guide/topics/resources/drawable-resource.jd @@ -434,7 +434,7 @@ screen).</dd> <h2 id="LayerList">Layer List</h2> <p>A {@link android.graphics.drawable.LayerDrawable} is a drawable object -that manages an array of other drawables. Each drawable in the list is drawn in the order of the +that manages an array of other drawables. Each drawable in the list is drawn in the order of the list—the last drawable in the list is drawn on top.</p> <p>Each drawable is represented by an {@code <item>} element inside a single {@code @@ -641,7 +641,7 @@ In XML: <code>@[<em>package</em>:]drawable/<em>filename</em></code> android:state_checkable=["true" | "false"] android:state_checked=["true" | "false"] android:state_enabled=["true" | "false"] - android:state_window_focused=["true" | "false"] /> + android:state_window_focused=["true" | "false"] /> </selector> </pre> </dd> @@ -729,12 +729,12 @@ default value should always be last (as demonstrated in the following example).< </selector> </pre> -<p>This layout XML applies the drawable to a View:</p> +<p>This layout XML applies the state list drawable to a Button:</p> <pre> -<ImageView +<Button android:layout_height="wrap_content" android:layout_width="wrap_content" - android:src="@drawable/button" /> + android:background="@drawable/button" /> </pre> </dd> <!-- end example --> @@ -1670,13 +1670,13 @@ android:dashGap} is set.</dd> <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> - <gradient - android:startColor="#FFFF0000" + <gradient + android:startColor="#FFFF0000" android:endColor="#80FF00FF" android:angle="45"/> - <padding android:left="7dp" + <padding android:left="7dp" android:top="7dp" - android:right="7dp" + android:right="7dp" android:bottom="7dp" /> <corners android:radius="8dp" /> </shape> |