diff options
author | Adam Powell <adamp@google.com> | 2010-08-03 11:26:07 -0700 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2010-08-03 15:01:31 -0700 |
commit | 1f9c7afc5a06576e327a4b1c12688202f53d9462 (patch) | |
tree | 1abbcf5a78694b7176487b69e6228b0739550219 /core/res | |
parent | c619d8279695f2bb44c11e6523333d1613feb678 (diff) | |
download | frameworks_base-1f9c7afc5a06576e327a4b1c12688202f53d9462.zip frameworks_base-1f9c7afc5a06576e327a4b1c12688202f53d9462.tar.gz frameworks_base-1f9c7afc5a06576e327a4b1c12688202f53d9462.tar.bz2 |
Add support for action buttons without an icon.
Change-Id: I026bb7463e7a73419dbaf79950d579ba05d04ea8
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/layout/action_menu_item_layout.xml | 13 | ||||
-rw-r--r-- | core/res/res/values/styles.xml | 1 |
2 files changed, 12 insertions, 2 deletions
diff --git a/core/res/res/layout/action_menu_item_layout.xml b/core/res/res/layout/action_menu_item_layout.xml index 3f06251..0d3cce5 100644 --- a/core/res/res/layout/action_menu_item_layout.xml +++ b/core/res/res/layout/action_menu_item_layout.xml @@ -16,5 +16,14 @@ <com.android.internal.view.menu.ActionMenuItemView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" - android:layout_height="wrap_content" - /> + android:layout_height="wrap_content" > + <ImageButton android:id="@+id/imageButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + style="?attr/actionButtonStyle" /> + <Button android:id="@+id/textButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" /> +</com.android.internal.view.menu.ActionMenuItemView> diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 3c09a89..993048d 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -882,5 +882,6 @@ </style> <style name="Widget.ActionButton"> + <item name="android:background">@null</item> </style> </resources> |