From bd964f96245227d994f0b1dc019c29c661836638 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Mon, 16 May 2011 20:32:16 -0700 Subject: Tweak padding and sizing of alert dialog elements to fit better in landscape mode on large screen devices. Integrate new dialog frame assets that take up less space. Change-Id: Icd1261063511355844579d6c5c34f32284031f82 --- .../drawable-hdpi/dialog_bottom_holo_dark.9.png | Bin 5087 -> 1055 bytes .../drawable-hdpi/dialog_bottom_holo_light.9.png | Bin 3955 -> 1061 bytes .../res/drawable-hdpi/dialog_full_holo_dark.9.png | Bin 9343 -> 1855 bytes .../res/drawable-hdpi/dialog_full_holo_light.9.png | Bin 7111 -> 1856 bytes .../drawable-hdpi/dialog_middle_holo_dark.9.png | Bin 353 -> 250 bytes .../drawable-hdpi/dialog_middle_holo_light.9.png | Bin 339 -> 242 bytes .../res/drawable-hdpi/dialog_top_holo_dark.9.png | Bin 5152 -> 1054 bytes .../res/drawable-hdpi/dialog_top_holo_light.9.png | Bin 4053 -> 1033 bytes core/res/res/drawable-hdpi/toast_frame.9.png | Bin 9342 -> 1855 bytes .../drawable-mdpi/dialog_bottom_holo_dark.9.png | Bin 2742 -> 663 bytes .../drawable-mdpi/dialog_bottom_holo_light.9.png | Bin 2254 -> 656 bytes .../res/drawable-mdpi/dialog_full_holo_dark.9.png | Bin 4862 -> 1059 bytes .../res/drawable-mdpi/dialog_full_holo_light.9.png | Bin 3984 -> 1061 bytes .../drawable-mdpi/dialog_middle_holo_dark.9.png | Bin 304 -> 223 bytes .../drawable-mdpi/dialog_middle_holo_light.9.png | Bin 297 -> 213 bytes .../res/drawable-mdpi/dialog_top_holo_dark.9.png | Bin 2771 -> 655 bytes .../res/drawable-mdpi/dialog_top_holo_light.9.png | Bin 2337 -> 632 bytes core/res/res/drawable-mdpi/toast_frame.9.png | Bin 4855 -> 1059 bytes .../drawable-xhdpi/dialog_bottom_holo_dark.9.png | Bin 0 -> 1493 bytes .../drawable-xhdpi/dialog_bottom_holo_light.9.png | Bin 0 -> 1502 bytes .../res/drawable-xhdpi/dialog_full_holo_dark.9.png | Bin 0 -> 2800 bytes .../drawable-xhdpi/dialog_full_holo_light.9.png | Bin 0 -> 2821 bytes .../drawable-xhdpi/dialog_middle_holo_dark.9.png | Bin 0 -> 272 bytes .../drawable-xhdpi/dialog_middle_holo_light.9.png | Bin 0 -> 271 bytes .../res/drawable-xhdpi/dialog_top_holo_dark.9.png | Bin 0 -> 1506 bytes .../res/drawable-xhdpi/dialog_top_holo_light.9.png | Bin 0 -> 1487 bytes core/res/res/drawable-xhdpi/toast_frame.9.png | Bin 0 -> 2800 bytes core/res/res/layout/alert_dialog_holo.xml | 9 ++++++-- core/res/res/values-h720dp/dimens.xml | 24 +++++++++++++++++++++ core/res/res/values/dimens.xml | 5 +++++ core/res/res/values/styles.xml | 4 ++++ 31 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 core/res/res/drawable-xhdpi/dialog_bottom_holo_dark.9.png create mode 100644 core/res/res/drawable-xhdpi/dialog_bottom_holo_light.9.png create mode 100644 core/res/res/drawable-xhdpi/dialog_full_holo_dark.9.png create mode 100644 core/res/res/drawable-xhdpi/dialog_full_holo_light.9.png create mode 100644 core/res/res/drawable-xhdpi/dialog_middle_holo_dark.9.png create mode 100644 core/res/res/drawable-xhdpi/dialog_middle_holo_light.9.png create mode 100644 core/res/res/drawable-xhdpi/dialog_top_holo_dark.9.png create mode 100644 core/res/res/drawable-xhdpi/dialog_top_holo_light.9.png create mode 100644 core/res/res/drawable-xhdpi/toast_frame.9.png create mode 100644 core/res/res/values-h720dp/dimens.xml diff --git a/core/res/res/drawable-hdpi/dialog_bottom_holo_dark.9.png b/core/res/res/drawable-hdpi/dialog_bottom_holo_dark.9.png index 6c6252e07481..32c2c974f679 100644 Binary files a/core/res/res/drawable-hdpi/dialog_bottom_holo_dark.9.png and b/core/res/res/drawable-hdpi/dialog_bottom_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/dialog_bottom_holo_light.9.png b/core/res/res/drawable-hdpi/dialog_bottom_holo_light.9.png index 175c750cf766..f1cba0650eef 100644 Binary files a/core/res/res/drawable-hdpi/dialog_bottom_holo_light.9.png and b/core/res/res/drawable-hdpi/dialog_bottom_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/dialog_full_holo_dark.9.png b/core/res/res/drawable-hdpi/dialog_full_holo_dark.9.png index 6e9abe658b79..08b163a1fdcc 100644 Binary files a/core/res/res/drawable-hdpi/dialog_full_holo_dark.9.png and b/core/res/res/drawable-hdpi/dialog_full_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/dialog_full_holo_light.9.png b/core/res/res/drawable-hdpi/dialog_full_holo_light.9.png index f96d09e4cc99..77ec017e3d61 100644 Binary files a/core/res/res/drawable-hdpi/dialog_full_holo_light.9.png and b/core/res/res/drawable-hdpi/dialog_full_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/dialog_middle_holo_dark.9.png b/core/res/res/drawable-hdpi/dialog_middle_holo_dark.9.png index 1f11f4406c82..029f18627158 100644 Binary files a/core/res/res/drawable-hdpi/dialog_middle_holo_dark.9.png and b/core/res/res/drawable-hdpi/dialog_middle_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/dialog_middle_holo_light.9.png b/core/res/res/drawable-hdpi/dialog_middle_holo_light.9.png index 2e376cdc5bc7..abaea2d58c06 100644 Binary files a/core/res/res/drawable-hdpi/dialog_middle_holo_light.9.png and b/core/res/res/drawable-hdpi/dialog_middle_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/dialog_top_holo_dark.9.png b/core/res/res/drawable-hdpi/dialog_top_holo_dark.9.png index 73d56b71d713..acbd7cfe4565 100644 Binary files a/core/res/res/drawable-hdpi/dialog_top_holo_dark.9.png and b/core/res/res/drawable-hdpi/dialog_top_holo_dark.9.png differ diff --git a/core/res/res/drawable-hdpi/dialog_top_holo_light.9.png b/core/res/res/drawable-hdpi/dialog_top_holo_light.9.png index 869decfe7cd4..8982396f2894 100644 Binary files a/core/res/res/drawable-hdpi/dialog_top_holo_light.9.png and b/core/res/res/drawable-hdpi/dialog_top_holo_light.9.png differ diff --git a/core/res/res/drawable-hdpi/toast_frame.9.png b/core/res/res/drawable-hdpi/toast_frame.9.png index 736683ef28a0..08b163a1fdcc 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-mdpi/dialog_bottom_holo_dark.9.png b/core/res/res/drawable-mdpi/dialog_bottom_holo_dark.9.png index 94716158b849..cc66804a7ff5 100644 Binary files a/core/res/res/drawable-mdpi/dialog_bottom_holo_dark.9.png and b/core/res/res/drawable-mdpi/dialog_bottom_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/dialog_bottom_holo_light.9.png b/core/res/res/drawable-mdpi/dialog_bottom_holo_light.9.png index 0502b938b26b..bc734c89714d 100644 Binary files a/core/res/res/drawable-mdpi/dialog_bottom_holo_light.9.png and b/core/res/res/drawable-mdpi/dialog_bottom_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/dialog_full_holo_dark.9.png b/core/res/res/drawable-mdpi/dialog_full_holo_dark.9.png index f364b2e3e9ea..8603e93b6c59 100644 Binary files a/core/res/res/drawable-mdpi/dialog_full_holo_dark.9.png and b/core/res/res/drawable-mdpi/dialog_full_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/dialog_full_holo_light.9.png b/core/res/res/drawable-mdpi/dialog_full_holo_light.9.png index 91c207646d8e..65a318c26a5b 100644 Binary files a/core/res/res/drawable-mdpi/dialog_full_holo_light.9.png and b/core/res/res/drawable-mdpi/dialog_full_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/dialog_middle_holo_dark.9.png b/core/res/res/drawable-mdpi/dialog_middle_holo_dark.9.png index 92788c97263e..e39a472edbb9 100644 Binary files a/core/res/res/drawable-mdpi/dialog_middle_holo_dark.9.png and b/core/res/res/drawable-mdpi/dialog_middle_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/dialog_middle_holo_light.9.png b/core/res/res/drawable-mdpi/dialog_middle_holo_light.9.png index 74b66f8a9003..68f9e577275f 100644 Binary files a/core/res/res/drawable-mdpi/dialog_middle_holo_light.9.png and b/core/res/res/drawable-mdpi/dialog_middle_holo_light.9.png differ diff --git a/core/res/res/drawable-mdpi/dialog_top_holo_dark.9.png b/core/res/res/drawable-mdpi/dialog_top_holo_dark.9.png index f25cfb692977..32c49f2ddd83 100644 Binary files a/core/res/res/drawable-mdpi/dialog_top_holo_dark.9.png and b/core/res/res/drawable-mdpi/dialog_top_holo_dark.9.png differ diff --git a/core/res/res/drawable-mdpi/dialog_top_holo_light.9.png b/core/res/res/drawable-mdpi/dialog_top_holo_light.9.png index ff3ff06bf440..60aa8cbe55c8 100644 Binary files a/core/res/res/drawable-mdpi/dialog_top_holo_light.9.png and b/core/res/res/drawable-mdpi/dialog_top_holo_light.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 1b06b7c85ad6..8603e93b6c59 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-xhdpi/dialog_bottom_holo_dark.9.png b/core/res/res/drawable-xhdpi/dialog_bottom_holo_dark.9.png new file mode 100644 index 000000000000..b33e117ab87b Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_bottom_holo_dark.9.png differ diff --git a/core/res/res/drawable-xhdpi/dialog_bottom_holo_light.9.png b/core/res/res/drawable-xhdpi/dialog_bottom_holo_light.9.png new file mode 100644 index 000000000000..d84d427ea557 Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_bottom_holo_light.9.png differ diff --git a/core/res/res/drawable-xhdpi/dialog_full_holo_dark.9.png b/core/res/res/drawable-xhdpi/dialog_full_holo_dark.9.png new file mode 100644 index 000000000000..9c0ff473f523 Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_full_holo_dark.9.png differ diff --git a/core/res/res/drawable-xhdpi/dialog_full_holo_light.9.png b/core/res/res/drawable-xhdpi/dialog_full_holo_light.9.png new file mode 100644 index 000000000000..331a4f2abb2f Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_full_holo_light.9.png differ diff --git a/core/res/res/drawable-xhdpi/dialog_middle_holo_dark.9.png b/core/res/res/drawable-xhdpi/dialog_middle_holo_dark.9.png new file mode 100644 index 000000000000..cdc887df9e30 Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_middle_holo_dark.9.png differ diff --git a/core/res/res/drawable-xhdpi/dialog_middle_holo_light.9.png b/core/res/res/drawable-xhdpi/dialog_middle_holo_light.9.png new file mode 100644 index 000000000000..55c60b822051 Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_middle_holo_light.9.png differ diff --git a/core/res/res/drawable-xhdpi/dialog_top_holo_dark.9.png b/core/res/res/drawable-xhdpi/dialog_top_holo_dark.9.png new file mode 100644 index 000000000000..600efb39b827 Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_top_holo_dark.9.png differ diff --git a/core/res/res/drawable-xhdpi/dialog_top_holo_light.9.png b/core/res/res/drawable-xhdpi/dialog_top_holo_light.9.png new file mode 100644 index 000000000000..d33d033dc80a Binary files /dev/null and b/core/res/res/drawable-xhdpi/dialog_top_holo_light.9.png differ diff --git a/core/res/res/drawable-xhdpi/toast_frame.9.png b/core/res/res/drawable-xhdpi/toast_frame.9.png new file mode 100644 index 000000000000..9c0ff473f523 Binary files /dev/null and b/core/res/res/drawable-xhdpi/toast_frame.9.png differ diff --git a/core/res/res/layout/alert_dialog_holo.xml b/core/res/res/layout/alert_dialog_holo.xml index 57eb9c7fed85..8ee91cabf115 100644 --- a/core/res/res/layout/alert_dialog_holo.xml +++ b/core/res/res/layout/alert_dialog_holo.xml @@ -22,6 +22,8 @@ android:id="@+id/parentPanel" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginLeft="8dip" + android:layout_marginRight="8dip" android:orientation="vertical">