diff options
| author | Scott Main <smain@google.com> | 2010-09-23 11:41:48 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-23 11:41:48 -0700 |
| commit | 2dc43f3d4c721acf331d699e24d9aac4d4cc2f95 (patch) | |
| tree | 90ec05b589e306bb7f21db420971f7ee7f99e7ea /docs | |
| parent | 5ee00e22b95ae4ea0d2cae5d781e39b8d962686a (diff) | |
| parent | 5b7328f257a76ff6b7b60872d6a106002ff1f679 (diff) | |
| download | frameworks_base-2dc43f3d4c721acf331d699e24d9aac4d4cc2f95.zip frameworks_base-2dc43f3d4c721acf331d699e24d9aac4d4cc2f95.tar.gz frameworks_base-2dc43f3d4c721acf331d699e24d9aac4d4cc2f95.tar.bz2 | |
am 5b7328f2: Merge "docs: add more info about state list drawable and onclick attribute to Button bug:1062898" into froyo
Merge commit '5b7328f257a76ff6b7b60872d6a106002ff1f679' into gingerbread
* commit '5b7328f257a76ff6b7b60872d6a106002ff1f679':
docs: add more info about state list drawable and onclick attribute to Button
Diffstat (limited to 'docs')
| -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> |
