From 0b2d306e7000f4c0c6ad4e00d494bb401d8a9fc2 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Tue, 14 Sep 2010 16:15:02 -0700 Subject: [PATCH] Style new popup widgets. Change-Id: I208ed292afd9919071778baa9ea61d7ca9e7743c --- api/current.xml | 110 ++++++++++++++++++ core/java/android/widget/ListPopupWindow.java | 2 +- .../internal/view/menu/MenuBuilder.java | 2 +- .../internal/view/menu/MenuPopupHelper.java | 4 +- .../res/res/layout/popup_menu_item_layout.xml | 59 ++++++++++ core/res/res/values/attrs.xml | 10 ++ core/res/res/values/public.xml | 11 ++ core/res/res/values/styles.xml | 28 +++++ core/res/res/values/themes.xml | 7 ++ 9 files changed, 228 insertions(+), 5 deletions(-) create mode 100644 core/res/res/layout/popup_menu_item_layout.xml diff --git a/api/current.xml b/api/current.xml index 36f6ae06e78fc..857fc554014e4 100644 --- a/api/current.xml +++ b/api/current.xml @@ -6840,6 +6840,17 @@ visibility="public" > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 2ede9f04c0200..b3d39f35b0be9 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -127,6 +127,12 @@ + + + + + + @@ -460,6 +466,10 @@ + + + + diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 79040b88a9f52..3b69acb94b357 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1348,6 +1348,10 @@ + + + + @@ -1380,6 +1384,13 @@ + + + + + + + diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 31aa49ac9dceb..9ba01311f32eb 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -937,4 +937,32 @@ ?android:attr/textColorPrimaryInverse 18sp + + + + + + + + + + + diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 70daee84d24cd..ba4cf9b2879bd 100644 --- a/core/res/res/values/themes.xml +++ b/core/res/res/values/themes.xml @@ -77,6 +77,9 @@ @android:drawable/indicator_check_mark_dark @android:drawable/indicator_check_mark_light + @android:style/TextAppearance.Widget.PopupMenu.Large + @android:style/TextAppearance.Widget.PopupMenu.Small + @android:style/Widget.Button @@ -198,6 +201,8 @@ @android:style/Widget.QuickContactBadgeSmall.WindowSmall @android:style/Widget.QuickContactBadgeSmall.WindowMedium @android:style/Widget.QuickContactBadgeSmall.WindowLarge + @android:style/Widget.ListPopupWindow + @android:style/Widget.PopupMenu @android:style/Preference.PreferenceScreen @@ -600,6 +605,7 @@ @android:drawable/edit_text_holo_dark ?android:attr/textColorPrimary true + ?android:attr/dropDownSpinnerStyle @android:drawable/btn_radio_holo_dark @android:drawable/btn_check_holo_dark @@ -612,6 +618,7 @@