From 785d2eb2b8d7072c8124300dd9168ff51a91cf38 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 14 Apr 2011 16:08:02 -0700 Subject: Initial changes to merged AllApps/Customize pane in the Phone UI. Change-Id: Ifa1676736033fe617dd0cca965156c38fa452948 --- res/anim/all_apps_2d_fade_in.xml | 2 +- res/anim/all_apps_2d_fade_out.xml | 2 +- res/anim/fade_in_slow.xml | 2 +- res/anim/fade_out_slow.xml | 2 +- res/drawable-hdpi/focused_bg.9.png | Bin 0 -> 2864 bytes res/drawable-hdpi/home_press.9.png | Bin 0 -> 195 bytes res/drawable-hdpi/ic_home_delete_holo_dark.png | Bin 0 -> 3237 bytes .../ic_home_delete_hover_holo_dark.png | Bin 0 -> 3129 bytes res/drawable-hdpi/ic_home_info_holo_dark.png | Bin 0 -> 5984 bytes res/drawable-mdpi/focused_bg.9.png | Bin 0 -> 2864 bytes res/drawable-mdpi/home_press.9.png | Bin 0 -> 2846 bytes res/drawable-mdpi/ic_home_delete_holo_dark.png | Bin 0 -> 1851 bytes .../ic_home_delete_hover_holo_dark.png | Bin 0 -> 2213 bytes res/drawable-mdpi/ic_home_info_holo_dark.png | Bin 0 -> 2358 bytes .../apps_customize_bg_gradient.9.png | Bin 0 -> 2937 bytes res/drawable-xlarge-hdpi/home_press.9.png | Bin 195 -> 0 bytes .../ic_home_delete_holo_dark.png | Bin 3237 -> 0 bytes .../ic_home_delete_hover_holo_dark.png | Bin 3129 -> 0 bytes res/drawable-xlarge-mdpi/focused_bg.9.png | Bin 2864 -> 0 bytes res/drawable-xlarge-mdpi/home_press.9.png | Bin 2846 -> 0 bytes .../ic_home_delete_holo_dark.png | Bin 1851 -> 0 bytes .../ic_home_delete_hover_holo_dark.png | Bin 2213 -> 0 bytes .../ic_home_info_holo_dark.png | Bin 2358 -> 0 bytes res/drawable-xlarge/button_bg.xml | 21 ----- res/drawable-xlarge/focusable_view_bg.xml | 19 ---- res/drawable/button_bg.xml | 21 +++++ res/drawable/delete_zone_selector.xml | 4 +- res/drawable/focusable_view_bg.xml | 19 ++++ res/layout-land/launcher.xml | 8 +- res/layout-port/launcher.xml | 8 +- res/layout-xlarge-port/tab_widget_indicator.xml | 19 ---- res/layout-xlarge/launcher.xml | 6 +- res/layout-xlarge/tab_widget_indicator.xml | 2 +- res/layout/apps_customize_application.xml | 32 +++++++ res/layout/apps_customize_pane.xml | 96 +++++++++++++++++++++ res/layout/tab_widget_indicator.xml | 19 ++++ res/values-land/dimens.xml | 9 ++ res/values-port/dimens.xml | 9 ++ res/values-xlarge/config.xml | 59 ++----------- res/values-xlarge/dimens.xml | 3 +- res/values-xlarge/styles.xml | 11 +++ res/values/config.xml | 41 +++++++-- res/values/dimens.xml | 36 ++++++-- res/values/styles.xml | 57 ++++++++---- 44 files changed, 350 insertions(+), 157 deletions(-) create mode 100644 res/drawable-hdpi/focused_bg.9.png create mode 100644 res/drawable-hdpi/home_press.9.png create mode 100644 res/drawable-hdpi/ic_home_delete_holo_dark.png create mode 100644 res/drawable-hdpi/ic_home_delete_hover_holo_dark.png create mode 100644 res/drawable-hdpi/ic_home_info_holo_dark.png create mode 100644 res/drawable-mdpi/focused_bg.9.png create mode 100644 res/drawable-mdpi/home_press.9.png create mode 100644 res/drawable-mdpi/ic_home_delete_holo_dark.png create mode 100644 res/drawable-mdpi/ic_home_delete_hover_holo_dark.png create mode 100644 res/drawable-mdpi/ic_home_info_holo_dark.png create mode 100644 res/drawable-nodpi/apps_customize_bg_gradient.9.png delete mode 100644 res/drawable-xlarge-hdpi/home_press.9.png delete mode 100644 res/drawable-xlarge-hdpi/ic_home_delete_holo_dark.png delete mode 100644 res/drawable-xlarge-hdpi/ic_home_delete_hover_holo_dark.png delete mode 100644 res/drawable-xlarge-mdpi/focused_bg.9.png delete mode 100644 res/drawable-xlarge-mdpi/home_press.9.png delete mode 100644 res/drawable-xlarge-mdpi/ic_home_delete_holo_dark.png delete mode 100644 res/drawable-xlarge-mdpi/ic_home_delete_hover_holo_dark.png delete mode 100644 res/drawable-xlarge-mdpi/ic_home_info_holo_dark.png delete mode 100644 res/drawable-xlarge/button_bg.xml delete mode 100644 res/drawable-xlarge/focusable_view_bg.xml create mode 100644 res/drawable/button_bg.xml create mode 100644 res/drawable/focusable_view_bg.xml delete mode 100644 res/layout-xlarge-port/tab_widget_indicator.xml create mode 100644 res/layout/apps_customize_application.xml create mode 100644 res/layout/apps_customize_pane.xml create mode 100644 res/layout/tab_widget_indicator.xml (limited to 'res') diff --git a/res/anim/all_apps_2d_fade_in.xml b/res/anim/all_apps_2d_fade_in.xml index 0f1e4f4e1..9d2171ae0 100644 --- a/res/anim/all_apps_2d_fade_in.xml +++ b/res/anim/all_apps_2d_fade_in.xml @@ -20,4 +20,4 @@ android:fromAlpha="0.0" android:toAlpha="1.0" - android:duration="@integer/config_allAppsFadeInTime" /> + android:duration="@integer/config_appsCustomizeFadeInTime" /> diff --git a/res/anim/all_apps_2d_fade_out.xml b/res/anim/all_apps_2d_fade_out.xml index cc4769177..90520c7d1 100644 --- a/res/anim/all_apps_2d_fade_out.xml +++ b/res/anim/all_apps_2d_fade_out.xml @@ -20,4 +20,4 @@ android:fromAlpha="1.0" android:toAlpha="0.0" - android:duration="@integer/config_allAppsFadeOutTime" /> + android:duration="@integer/config_appsCustomizeFadeOutTime" /> diff --git a/res/anim/fade_in_slow.xml b/res/anim/fade_in_slow.xml index 0f1e4f4e1..9d2171ae0 100644 --- a/res/anim/fade_in_slow.xml +++ b/res/anim/fade_in_slow.xml @@ -20,4 +20,4 @@ android:fromAlpha="0.0" android:toAlpha="1.0" - android:duration="@integer/config_allAppsFadeInTime" /> + android:duration="@integer/config_appsCustomizeFadeInTime" /> diff --git a/res/anim/fade_out_slow.xml b/res/anim/fade_out_slow.xml index cc4769177..90520c7d1 100644 --- a/res/anim/fade_out_slow.xml +++ b/res/anim/fade_out_slow.xml @@ -20,4 +20,4 @@ android:fromAlpha="1.0" android:toAlpha="0.0" - android:duration="@integer/config_allAppsFadeOutTime" /> + android:duration="@integer/config_appsCustomizeFadeOutTime" /> diff --git a/res/drawable-hdpi/focused_bg.9.png b/res/drawable-hdpi/focused_bg.9.png new file mode 100644 index 000000000..1b0d3fa40 Binary files /dev/null and b/res/drawable-hdpi/focused_bg.9.png differ diff --git a/res/drawable-hdpi/home_press.9.png b/res/drawable-hdpi/home_press.9.png new file mode 100644 index 000000000..743880b0a Binary files /dev/null and b/res/drawable-hdpi/home_press.9.png differ diff --git a/res/drawable-hdpi/ic_home_delete_holo_dark.png b/res/drawable-hdpi/ic_home_delete_holo_dark.png new file mode 100644 index 000000000..9d642786f Binary files /dev/null and b/res/drawable-hdpi/ic_home_delete_holo_dark.png differ diff --git a/res/drawable-hdpi/ic_home_delete_hover_holo_dark.png b/res/drawable-hdpi/ic_home_delete_hover_holo_dark.png new file mode 100644 index 000000000..60d5b15df Binary files /dev/null and b/res/drawable-hdpi/ic_home_delete_hover_holo_dark.png differ diff --git a/res/drawable-hdpi/ic_home_info_holo_dark.png b/res/drawable-hdpi/ic_home_info_holo_dark.png new file mode 100644 index 000000000..02df4e1cf Binary files /dev/null and b/res/drawable-hdpi/ic_home_info_holo_dark.png differ diff --git a/res/drawable-mdpi/focused_bg.9.png b/res/drawable-mdpi/focused_bg.9.png new file mode 100644 index 000000000..1b0d3fa40 Binary files /dev/null and b/res/drawable-mdpi/focused_bg.9.png differ diff --git a/res/drawable-mdpi/home_press.9.png b/res/drawable-mdpi/home_press.9.png new file mode 100644 index 000000000..ff841c397 Binary files /dev/null and b/res/drawable-mdpi/home_press.9.png differ diff --git a/res/drawable-mdpi/ic_home_delete_holo_dark.png b/res/drawable-mdpi/ic_home_delete_holo_dark.png new file mode 100644 index 000000000..647fd8088 Binary files /dev/null and b/res/drawable-mdpi/ic_home_delete_holo_dark.png differ diff --git a/res/drawable-mdpi/ic_home_delete_hover_holo_dark.png b/res/drawable-mdpi/ic_home_delete_hover_holo_dark.png new file mode 100644 index 000000000..06b62e2f2 Binary files /dev/null and b/res/drawable-mdpi/ic_home_delete_hover_holo_dark.png differ diff --git a/res/drawable-mdpi/ic_home_info_holo_dark.png b/res/drawable-mdpi/ic_home_info_holo_dark.png new file mode 100644 index 000000000..c34f443bc Binary files /dev/null and b/res/drawable-mdpi/ic_home_info_holo_dark.png differ diff --git a/res/drawable-nodpi/apps_customize_bg_gradient.9.png b/res/drawable-nodpi/apps_customize_bg_gradient.9.png new file mode 100644 index 000000000..e766bd65a Binary files /dev/null and b/res/drawable-nodpi/apps_customize_bg_gradient.9.png differ diff --git a/res/drawable-xlarge-hdpi/home_press.9.png b/res/drawable-xlarge-hdpi/home_press.9.png deleted file mode 100644 index 743880b0a..000000000 Binary files a/res/drawable-xlarge-hdpi/home_press.9.png and /dev/null differ diff --git a/res/drawable-xlarge-hdpi/ic_home_delete_holo_dark.png b/res/drawable-xlarge-hdpi/ic_home_delete_holo_dark.png deleted file mode 100644 index 9d642786f..000000000 Binary files a/res/drawable-xlarge-hdpi/ic_home_delete_holo_dark.png and /dev/null differ diff --git a/res/drawable-xlarge-hdpi/ic_home_delete_hover_holo_dark.png b/res/drawable-xlarge-hdpi/ic_home_delete_hover_holo_dark.png deleted file mode 100644 index 60d5b15df..000000000 Binary files a/res/drawable-xlarge-hdpi/ic_home_delete_hover_holo_dark.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/focused_bg.9.png b/res/drawable-xlarge-mdpi/focused_bg.9.png deleted file mode 100644 index 1b0d3fa40..000000000 Binary files a/res/drawable-xlarge-mdpi/focused_bg.9.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/home_press.9.png b/res/drawable-xlarge-mdpi/home_press.9.png deleted file mode 100644 index ff841c397..000000000 Binary files a/res/drawable-xlarge-mdpi/home_press.9.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/ic_home_delete_holo_dark.png b/res/drawable-xlarge-mdpi/ic_home_delete_holo_dark.png deleted file mode 100644 index 647fd8088..000000000 Binary files a/res/drawable-xlarge-mdpi/ic_home_delete_holo_dark.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/ic_home_delete_hover_holo_dark.png b/res/drawable-xlarge-mdpi/ic_home_delete_hover_holo_dark.png deleted file mode 100644 index 06b62e2f2..000000000 Binary files a/res/drawable-xlarge-mdpi/ic_home_delete_hover_holo_dark.png and /dev/null differ diff --git a/res/drawable-xlarge-mdpi/ic_home_info_holo_dark.png b/res/drawable-xlarge-mdpi/ic_home_info_holo_dark.png deleted file mode 100644 index c34f443bc..000000000 Binary files a/res/drawable-xlarge-mdpi/ic_home_info_holo_dark.png and /dev/null differ diff --git a/res/drawable-xlarge/button_bg.xml b/res/drawable-xlarge/button_bg.xml deleted file mode 100644 index 2cb79268b..000000000 --- a/res/drawable-xlarge/button_bg.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - diff --git a/res/drawable-xlarge/focusable_view_bg.xml b/res/drawable-xlarge/focusable_view_bg.xml deleted file mode 100644 index fb36bfc7e..000000000 --- a/res/drawable-xlarge/focusable_view_bg.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - diff --git a/res/drawable/button_bg.xml b/res/drawable/button_bg.xml new file mode 100644 index 000000000..a830594ea --- /dev/null +++ b/res/drawable/button_bg.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/res/drawable/delete_zone_selector.xml b/res/drawable/delete_zone_selector.xml index 0c54b1d74..e2b37f4dc 100644 --- a/res/drawable/delete_zone_selector.xml +++ b/res/drawable/delete_zone_selector.xml @@ -19,6 +19,6 @@ --> - - + + diff --git a/res/drawable/focusable_view_bg.xml b/res/drawable/focusable_view_bg.xml new file mode 100644 index 000000000..66661e28b --- /dev/null +++ b/res/drawable/focusable_view_bg.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 6e797f8eb..b525a4b4e 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -22,8 +22,6 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - + + - - + + - - - diff --git a/res/layout-xlarge/launcher.xml b/res/layout-xlarge/launcher.xml index c71d13190..6c6fecf82 100644 --- a/res/layout-xlarge/launcher.xml +++ b/res/layout-xlarge/launcher.xml @@ -53,11 +53,13 @@ android:id="@+id/all_apps_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_gravity="top" /> + android:layout_gravity="top" + android:visibility="invisible" /> + android:layout_gravity="bottom" + android:visibility="invisible" /> diff --git a/res/layout-xlarge/tab_widget_indicator.xml b/res/layout-xlarge/tab_widget_indicator.xml index 8968c2a7f..c09c8534c 100644 --- a/res/layout-xlarge/tab_widget_indicator.xml +++ b/res/layout-xlarge/tab_widget_indicator.xml @@ -16,4 +16,4 @@ + style="@style/TabIndicator.Wide" /> diff --git a/res/layout/apps_customize_application.xml b/res/layout/apps_customize_application.xml new file mode 100644 index 000000000..4f3632632 --- /dev/null +++ b/res/layout/apps_customize_application.xml @@ -0,0 +1,32 @@ + + + + diff --git a/res/layout/apps_customize_pane.xml b/res/layout/apps_customize_pane.xml new file mode 100644 index 000000000..2b768b618 --- /dev/null +++ b/res/layout/apps_customize_pane.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/tab_widget_indicator.xml b/res/layout/tab_widget_indicator.xml new file mode 100644 index 000000000..b3694febc --- /dev/null +++ b/res/layout/tab_widget_indicator.xml @@ -0,0 +1,19 @@ + + + + diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml index 9cb549b01..111a70657 100644 --- a/res/values-land/dimens.xml +++ b/res/values-land/dimens.xml @@ -20,4 +20,13 @@ 100dip 74dip 62dip + + 6 + 3 + 10dp + 5dp + 10dp + 10dp + 2dp + 2dp diff --git a/res/values-port/dimens.xml b/res/values-port/dimens.xml index ad5922dda..5bd566fe8 100644 --- a/res/values-port/dimens.xml +++ b/res/values-port/dimens.xml @@ -19,4 +19,13 @@ 100dip 74dip 86dip + + 4 + 5 + 3dp + 12dp + 15dp + 15dp + 0dp + 0dp diff --git a/res/values-xlarge/config.xml b/res/values-xlarge/config.xml index b9880e3ea..99ee1ec58 100644 --- a/res/values-xlarge/config.xml +++ b/res/values-xlarge/config.xml @@ -1,53 +1,21 @@ - - - - 150 - 200 - 102 - - - - 1000 - 250 - - - 100 - - - - 1200 - - - 20 - - - + + 800 - 800 - - - 600 - - 7 + 800 + + + 150 - 500 800 - 1000 - 650 - - - 350 - 200 + @@ -61,13 +29,4 @@ 200 350 50 - - - 150 - 150 - - diff --git a/res/values-xlarge/dimens.xml b/res/values-xlarge/dimens.xml index fffa0f231..11f85ab92 100644 --- a/res/values-xlarge/dimens.xml +++ b/res/values-xlarge/dimens.xml @@ -15,6 +15,8 @@ --> + 96dp + 96dp 96dip 96dip @@ -40,7 +42,6 @@ 30dip 60dip - 8dip 0dip 4dip diff --git a/res/values-xlarge/styles.xml b/res/values-xlarge/styles.xml index 7208d979f..96d9cc9ff 100644 --- a/res/values-xlarge/styles.xml +++ b/res/values-xlarge/styles.xml @@ -41,4 +41,15 @@ 0dip false + + + + diff --git a/res/values/config.xml b/res/values/config.xml index ec01fa840..5d3fb7014 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -1,10 +1,41 @@ - 700 - 700 + + false + + + + 150 + 200 + 100 + 650 + + + 1000 + 1200 + 20 + 250 + 500 + 1000 + + + 100 + + + 150 + + + 350 + 200 + + 0 0 - false + 600 20 50 - - diff --git a/res/values/dimens.xml b/res/values/dimens.xml index e346c6a0e..62e55d2e2 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -15,8 +15,16 @@ --> + + + 50dp + 68dp + 68dp 120px + + 56dp + 56dip @@ -24,6 +32,24 @@ button_bar_height changes --> 56dip + + 0dip + + + 30dip + 60dip + + + 70dip + + + 14dip + + + 8dip + 25dip @@ -32,15 +58,7 @@ button cluster in landscape) --> 12dip - - 50dp - - - 70dip - - - 14dip - + 20dp diff --git a/res/values/styles.xml b/res/values/styles.xml index 0c74a6a2e..ac7d4df73 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -35,17 +35,17 @@ - - + + + + + -- cgit v1.2.3