diff options
| author | 2011-01-23 21:15:23 -0800 | |
|---|---|---|
| committer | 2011-01-23 21:15:23 -0800 | |
| commit | 472b026dc19af0d34808a7e0f758b79d197b5e35 (patch) | |
| tree | 17ba2de5ddfaacf7f4f60afedfc8a55d032fc3bf | |
| parent | 2cd06609b4564d4991e9bf79301fde0bb53833ed (diff) | |
Fix bug 3360953 - Toasts use the holo theme in non-HC apps
Change-Id: Ic386b35ec47613655f4b17395090959f9031e3ad
| -rw-r--r-- | core/res/res/drawable-hdpi/toast_frame.9.png | bin | 6428 -> 2461 bytes | |||
| -rw-r--r-- | core/res/res/drawable-hdpi/toast_frame_holo.9.png | bin | 0 -> 6428 bytes | |||
| -rwxr-xr-x | core/res/res/drawable-mdpi/toast_frame.9.png | bin | 3568 -> 4328 bytes | |||
| -rwxr-xr-x | core/res/res/drawable-mdpi/toast_frame_holo.9.png | bin | 0 -> 3568 bytes | |||
| -rw-r--r-- | core/res/res/layout/transient_notification.xml | 2 | ||||
| -rwxr-xr-x | core/res/res/values/attrs.xml | 3 | ||||
| -rw-r--r-- | core/res/res/values/themes.xml | 6 |
7 files changed, 10 insertions, 1 deletions
diff --git a/core/res/res/drawable-hdpi/toast_frame.9.png b/core/res/res/drawable-hdpi/toast_frame.9.png Binary files differindex 7f830bcd7cf9..8f5d8119c12a 100644 --- a/core/res/res/drawable-hdpi/toast_frame.9.png +++ b/core/res/res/drawable-hdpi/toast_frame.9.png diff --git a/core/res/res/drawable-hdpi/toast_frame_holo.9.png b/core/res/res/drawable-hdpi/toast_frame_holo.9.png Binary files differnew file mode 100644 index 000000000000..7f830bcd7cf9 --- /dev/null +++ b/core/res/res/drawable-hdpi/toast_frame_holo.9.png diff --git a/core/res/res/drawable-mdpi/toast_frame.9.png b/core/res/res/drawable-mdpi/toast_frame.9.png Binary files differindex 911f86d73ce6..08c4f869e019 100755 --- a/core/res/res/drawable-mdpi/toast_frame.9.png +++ b/core/res/res/drawable-mdpi/toast_frame.9.png diff --git a/core/res/res/drawable-mdpi/toast_frame_holo.9.png b/core/res/res/drawable-mdpi/toast_frame_holo.9.png Binary files differnew file mode 100755 index 000000000000..911f86d73ce6 --- /dev/null +++ b/core/res/res/drawable-mdpi/toast_frame_holo.9.png 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"> <TextView android:id="@android:id/message" diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index e76692ad3ee0..c808a07594a7 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -690,6 +690,9 @@ <!-- Style for buttons without an explicit border, often used in groups. --> <attr name="borderlessButtonStyle" format="reference" /> + <!-- Background to use for toasts --> + <attr name="toastFrameBackground" format="reference" /> + <!-- ============================ --> <!-- SearchView styles and assets --> <!-- ============================ --> 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 @@ <item name="alertDialogTheme">@android:style/Theme.Dialog.Alert</item> <item name="alertDialogCenterButtons">true</item> <item name="alertDialogIcon">@android:drawable/ic_dialog_alert</item> + + <item name="toastFrameBackground">@android:drawable/toast_frame</item> <!-- Panel attributes --> <item name="panelBackground">@android:drawable/menu_background</item> @@ -863,6 +865,8 @@ <item name="alertDialogTheme">@android:style/Theme.Holo.Dialog.Alert</item> <item name="alertDialogCenterButtons">false</item> <item name="alertDialogIcon">@android:drawable/ic_dialog_alert_holo_dark</item> + + <item name="toastFrameBackground">@android:drawable/toast_frame_holo</item> <!-- Panel attributes --> <item name="panelBackground">@android:drawable/menu_background</item> @@ -1132,6 +1136,8 @@ <item name="alertDialogCenterButtons">false</item> <item name="alertDialogTheme">@android:style/Theme.Holo.Light.Dialog.Alert</item> <item name="alertDialogIcon">@android:drawable/ic_dialog_alert_holo_light</item> + + <item name="toastFrameBackground">@android:drawable/toast_frame_holo</item> <!-- Panel attributes --> <item name="panelBackground">@android:drawable/menu_background</item> |