From 472b026dc19af0d34808a7e0f758b79d197b5e35 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Sun, 23 Jan 2011 21:15:23 -0800 Subject: Fix bug 3360953 - Toasts use the holo theme in non-HC apps Change-Id: Ic386b35ec47613655f4b17395090959f9031e3ad --- core/res/res/drawable-hdpi/toast_frame.9.png | Bin 6428 -> 2461 bytes core/res/res/drawable-hdpi/toast_frame_holo.9.png | Bin 0 -> 6428 bytes core/res/res/drawable-mdpi/toast_frame.9.png | Bin 3568 -> 4328 bytes core/res/res/drawable-mdpi/toast_frame_holo.9.png | Bin 0 -> 3568 bytes core/res/res/layout/transient_notification.xml | 2 +- core/res/res/values/attrs.xml | 3 +++ core/res/res/values/themes.xml | 6 ++++++ 7 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 core/res/res/drawable-hdpi/toast_frame_holo.9.png create mode 100755 core/res/res/drawable-mdpi/toast_frame_holo.9.png diff --git a/core/res/res/drawable-hdpi/toast_frame.9.png b/core/res/res/drawable-hdpi/toast_frame.9.png index 7f830bcd7cf9..8f5d8119c12a 100644 Binary files a/core/res/res/drawable-hdpi/toast_frame.9.png and b/core/res/res/drawable-hdpi/toast_frame.9.png differ diff --git a/core/res/res/drawable-hdpi/toast_frame_holo.9.png b/core/res/res/drawable-hdpi/toast_frame_holo.9.png new file mode 100644 index 000000000000..7f830bcd7cf9 Binary files /dev/null and b/core/res/res/drawable-hdpi/toast_frame_holo.9.png differ diff --git a/core/res/res/drawable-mdpi/toast_frame.9.png b/core/res/res/drawable-mdpi/toast_frame.9.png index 911f86d73ce6..08c4f869e019 100755 Binary files a/core/res/res/drawable-mdpi/toast_frame.9.png and b/core/res/res/drawable-mdpi/toast_frame.9.png differ diff --git a/core/res/res/drawable-mdpi/toast_frame_holo.9.png b/core/res/res/drawable-mdpi/toast_frame_holo.9.png new file mode 100755 index 000000000000..911f86d73ce6 Binary files /dev/null and b/core/res/res/drawable-mdpi/toast_frame_holo.9.png differ diff --git a/core/res/res/layout/transient_notification.xml b/core/res/res/layout/transient_notification.xml index 12b67f18787a..21d58aa66002 100644 --- a/core/res/res/layout/transient_notification.xml +++ b/core/res/res/layout/transient_notification.xml @@ -22,7 +22,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:background="@drawable/toast_frame"> + android:background="?android:attr/toastFrameBackground"> + + + diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 00d4b95e2a1b..08542bf7f86e 100644 --- a/core/res/res/values/themes.xml +++ b/core/res/res/values/themes.xml @@ -149,6 +149,8 @@ @android:style/Theme.Dialog.Alert true @android:drawable/ic_dialog_alert + + @android:drawable/toast_frame @android:drawable/menu_background @@ -863,6 +865,8 @@ @android:style/Theme.Holo.Dialog.Alert false @android:drawable/ic_dialog_alert_holo_dark + + @android:drawable/toast_frame_holo @android:drawable/menu_background @@ -1132,6 +1136,8 @@ false @android:style/Theme.Holo.Light.Dialog.Alert @android:drawable/ic_dialog_alert_holo_light + + @android:drawable/toast_frame_holo @android:drawable/menu_background -- cgit v1.2.3-59-g8ed1b