From 649723cfb3d73af16dd02462725700897ca60e38 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 6 Jul 2011 20:41:23 -0700 Subject: Updating assets. - Tweaking search bar layout. Change-Id: I9624fa4284135858d3e19b8b8e4710b5dd746042 --- .../default_widget_preview_holo.9.png | Bin 344 -> 340 bytes res/drawable-hdpi/hotseat_scrubber_holo.9.png | Bin 184 -> 2878 bytes res/drawable-hdpi/hotseat_track_holo.9.png | Bin 174 -> 122 bytes res/drawable-hdpi/ic_generic_search.png | Bin 6099 -> 0 bytes res/drawable-hdpi/ic_search_normal_holo.png | Bin 0 -> 2257 bytes res/drawable-hdpi/ic_voice_search.png | Bin 4969 -> 0 bytes res/drawable-hdpi/ic_voice_search_holo.png | Bin 0 -> 1600 bytes res/drawable-hdpi/tab_selected_focused_holo.9.png | Bin 218 -> 203 bytes res/drawable-hdpi/tab_selected_holo.9.png | Bin 159 -> 149 bytes .../tab_selected_pressed_focused_holo.9.png | Bin 522 -> 231 bytes res/drawable-hdpi/tab_selected_pressed_holo.9.png | Bin 271 -> 185 bytes .../tab_unselected_focused_holo.9.png | Bin 216 -> 196 bytes res/drawable-hdpi/tab_unselected_holo.9.png | Bin 131 -> 144 bytes .../tab_unselected_pressed_focused_holo.9.png | Bin 536 -> 244 bytes .../tab_unselected_pressed_holo.9.png | Bin 265 -> 192 bytes .../default_widget_preview_holo.9.png | Bin 279 -> 279 bytes res/drawable-mdpi/hotseat_scrubber_holo.9.png | Bin 173 -> 132 bytes res/drawable-mdpi/hotseat_track_holo.9.png | Bin 157 -> 122 bytes res/drawable-mdpi/ic_generic_search.png | Bin 4885 -> 0 bytes res/drawable-mdpi/ic_search_normal_holo.png | Bin 0 -> 1388 bytes res/drawable-mdpi/ic_voice_search_holo.png | Bin 0 -> 1044 bytes res/drawable-mdpi/tab_selected_focused_holo.9.png | Bin 203 -> 182 bytes res/drawable-mdpi/tab_selected_holo.9.png | Bin 144 -> 136 bytes .../tab_selected_pressed_focused_holo.9.png | Bin 454 -> 199 bytes res/drawable-mdpi/tab_selected_pressed_holo.9.png | Bin 231 -> 152 bytes .../tab_unselected_focused_holo.9.png | Bin 196 -> 177 bytes res/drawable-mdpi/tab_unselected_holo.9.png | Bin 131 -> 130 bytes .../tab_unselected_pressed_focused_holo.9.png | Bin 459 -> 202 bytes .../tab_unselected_pressed_holo.9.png | Bin 223 -> 155 bytes res/layout-land/launcher.xml | 16 +-- res/layout-land/search_bar.xml | 55 +++++++++ res/layout-large/button_bar.xml | 4 +- res/layout-large/qsb_bar.xml | 131 --------------------- res/layout-large/search_bar.xml | 92 +++++++++++++++ res/layout-port/launcher.xml | 16 +-- res/layout-port/search_bar.xml | 51 ++++++++ res/layout/apps_customize_pane.xml | 21 ++-- res/layout/qsb_bar.xml | 41 +------ res/layout/scroll_indicator.xml | 22 ++++ res/layout/scroll_indicator_track.xml | 22 ++++ res/values-large/dimens.xml | 4 + res/values-large/styles.xml | 7 ++ res/values/dimens.xml | 5 +- .../android/launcher2/AppsCustomizePagedView.java | 5 - src/com/android/launcher2/Launcher.java | 12 +- src/com/android/launcher2/PagedView.java | 41 +++---- 46 files changed, 306 insertions(+), 239 deletions(-) delete mode 100644 res/drawable-hdpi/ic_generic_search.png create mode 100644 res/drawable-hdpi/ic_search_normal_holo.png delete mode 100644 res/drawable-hdpi/ic_voice_search.png create mode 100644 res/drawable-hdpi/ic_voice_search_holo.png delete mode 100644 res/drawable-mdpi/ic_generic_search.png create mode 100644 res/drawable-mdpi/ic_search_normal_holo.png create mode 100644 res/drawable-mdpi/ic_voice_search_holo.png create mode 100644 res/layout-land/search_bar.xml delete mode 100644 res/layout-large/qsb_bar.xml create mode 100644 res/layout-large/search_bar.xml create mode 100644 res/layout-port/search_bar.xml create mode 100644 res/layout/scroll_indicator.xml create mode 100644 res/layout/scroll_indicator_track.xml diff --git a/res/drawable-hdpi/default_widget_preview_holo.9.png b/res/drawable-hdpi/default_widget_preview_holo.9.png index ecf5deb12..6745e4945 100644 Binary files a/res/drawable-hdpi/default_widget_preview_holo.9.png and b/res/drawable-hdpi/default_widget_preview_holo.9.png differ diff --git a/res/drawable-hdpi/hotseat_scrubber_holo.9.png b/res/drawable-hdpi/hotseat_scrubber_holo.9.png index 78b540d47..3400050ca 100644 Binary files a/res/drawable-hdpi/hotseat_scrubber_holo.9.png and b/res/drawable-hdpi/hotseat_scrubber_holo.9.png differ diff --git a/res/drawable-hdpi/hotseat_track_holo.9.png b/res/drawable-hdpi/hotseat_track_holo.9.png index ca495ffac..a058a3a37 100644 Binary files a/res/drawable-hdpi/hotseat_track_holo.9.png and b/res/drawable-hdpi/hotseat_track_holo.9.png differ diff --git a/res/drawable-hdpi/ic_generic_search.png b/res/drawable-hdpi/ic_generic_search.png deleted file mode 100644 index 67bac5cc8..000000000 Binary files a/res/drawable-hdpi/ic_generic_search.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_search_normal_holo.png b/res/drawable-hdpi/ic_search_normal_holo.png new file mode 100644 index 000000000..9935f489d Binary files /dev/null and b/res/drawable-hdpi/ic_search_normal_holo.png differ diff --git a/res/drawable-hdpi/ic_voice_search.png b/res/drawable-hdpi/ic_voice_search.png deleted file mode 100644 index 5d2f341ea..000000000 Binary files a/res/drawable-hdpi/ic_voice_search.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_voice_search_holo.png b/res/drawable-hdpi/ic_voice_search_holo.png new file mode 100644 index 000000000..e0df1a285 Binary files /dev/null and b/res/drawable-hdpi/ic_voice_search_holo.png differ diff --git a/res/drawable-hdpi/tab_selected_focused_holo.9.png b/res/drawable-hdpi/tab_selected_focused_holo.9.png index 1ba35d554..5cf75834e 100644 Binary files a/res/drawable-hdpi/tab_selected_focused_holo.9.png and b/res/drawable-hdpi/tab_selected_focused_holo.9.png differ diff --git a/res/drawable-hdpi/tab_selected_holo.9.png b/res/drawable-hdpi/tab_selected_holo.9.png index ef913cc8e..8da2dee1e 100644 Binary files a/res/drawable-hdpi/tab_selected_holo.9.png and b/res/drawable-hdpi/tab_selected_holo.9.png differ diff --git a/res/drawable-hdpi/tab_selected_pressed_focused_holo.9.png b/res/drawable-hdpi/tab_selected_pressed_focused_holo.9.png index d7e968806..4b312d9e3 100644 Binary files a/res/drawable-hdpi/tab_selected_pressed_focused_holo.9.png and b/res/drawable-hdpi/tab_selected_pressed_focused_holo.9.png differ diff --git a/res/drawable-hdpi/tab_selected_pressed_holo.9.png b/res/drawable-hdpi/tab_selected_pressed_holo.9.png index b8b1fcfe2..185a924c1 100644 Binary files a/res/drawable-hdpi/tab_selected_pressed_holo.9.png and b/res/drawable-hdpi/tab_selected_pressed_holo.9.png differ diff --git a/res/drawable-hdpi/tab_unselected_focused_holo.9.png b/res/drawable-hdpi/tab_unselected_focused_holo.9.png index 256e8e730..acfcaca3f 100644 Binary files a/res/drawable-hdpi/tab_unselected_focused_holo.9.png and b/res/drawable-hdpi/tab_unselected_focused_holo.9.png differ diff --git a/res/drawable-hdpi/tab_unselected_holo.9.png b/res/drawable-hdpi/tab_unselected_holo.9.png index db6fc144c..fcdf716cb 100644 Binary files a/res/drawable-hdpi/tab_unselected_holo.9.png and b/res/drawable-hdpi/tab_unselected_holo.9.png differ diff --git a/res/drawable-hdpi/tab_unselected_pressed_focused_holo.9.png b/res/drawable-hdpi/tab_unselected_pressed_focused_holo.9.png index d17b82026..5140b3523 100644 Binary files a/res/drawable-hdpi/tab_unselected_pressed_focused_holo.9.png and b/res/drawable-hdpi/tab_unselected_pressed_focused_holo.9.png differ diff --git a/res/drawable-hdpi/tab_unselected_pressed_holo.9.png b/res/drawable-hdpi/tab_unselected_pressed_holo.9.png index a344994fb..af85bb7be 100644 Binary files a/res/drawable-hdpi/tab_unselected_pressed_holo.9.png and b/res/drawable-hdpi/tab_unselected_pressed_holo.9.png differ diff --git a/res/drawable-mdpi/default_widget_preview_holo.9.png b/res/drawable-mdpi/default_widget_preview_holo.9.png index d8e11966f..f9a97263a 100644 Binary files a/res/drawable-mdpi/default_widget_preview_holo.9.png and b/res/drawable-mdpi/default_widget_preview_holo.9.png differ diff --git a/res/drawable-mdpi/hotseat_scrubber_holo.9.png b/res/drawable-mdpi/hotseat_scrubber_holo.9.png index 8b7e109bd..69f74f731 100644 Binary files a/res/drawable-mdpi/hotseat_scrubber_holo.9.png and b/res/drawable-mdpi/hotseat_scrubber_holo.9.png differ diff --git a/res/drawable-mdpi/hotseat_track_holo.9.png b/res/drawable-mdpi/hotseat_track_holo.9.png index a542cb7b9..a058a3a37 100644 Binary files a/res/drawable-mdpi/hotseat_track_holo.9.png and b/res/drawable-mdpi/hotseat_track_holo.9.png differ diff --git a/res/drawable-mdpi/ic_generic_search.png b/res/drawable-mdpi/ic_generic_search.png deleted file mode 100644 index e3fd5a266..000000000 Binary files a/res/drawable-mdpi/ic_generic_search.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_search_normal_holo.png b/res/drawable-mdpi/ic_search_normal_holo.png new file mode 100644 index 000000000..6acf24bc4 Binary files /dev/null and b/res/drawable-mdpi/ic_search_normal_holo.png differ diff --git a/res/drawable-mdpi/ic_voice_search_holo.png b/res/drawable-mdpi/ic_voice_search_holo.png new file mode 100644 index 000000000..29533ba3c Binary files /dev/null and b/res/drawable-mdpi/ic_voice_search_holo.png differ diff --git a/res/drawable-mdpi/tab_selected_focused_holo.9.png b/res/drawable-mdpi/tab_selected_focused_holo.9.png index 9a33cd2d9..d393cde69 100644 Binary files a/res/drawable-mdpi/tab_selected_focused_holo.9.png and b/res/drawable-mdpi/tab_selected_focused_holo.9.png differ diff --git a/res/drawable-mdpi/tab_selected_holo.9.png b/res/drawable-mdpi/tab_selected_holo.9.png index e029e577a..4035a3229 100644 Binary files a/res/drawable-mdpi/tab_selected_holo.9.png and b/res/drawable-mdpi/tab_selected_holo.9.png differ diff --git a/res/drawable-mdpi/tab_selected_pressed_focused_holo.9.png b/res/drawable-mdpi/tab_selected_pressed_focused_holo.9.png index 285116e31..284f5344a 100644 Binary files a/res/drawable-mdpi/tab_selected_pressed_focused_holo.9.png and b/res/drawable-mdpi/tab_selected_pressed_focused_holo.9.png differ diff --git a/res/drawable-mdpi/tab_selected_pressed_holo.9.png b/res/drawable-mdpi/tab_selected_pressed_holo.9.png index dadefa758..7efad5eb8 100644 Binary files a/res/drawable-mdpi/tab_selected_pressed_holo.9.png and b/res/drawable-mdpi/tab_selected_pressed_holo.9.png differ diff --git a/res/drawable-mdpi/tab_unselected_focused_holo.9.png b/res/drawable-mdpi/tab_unselected_focused_holo.9.png index 032a9921c..d3d19fc56 100644 Binary files a/res/drawable-mdpi/tab_unselected_focused_holo.9.png and b/res/drawable-mdpi/tab_unselected_focused_holo.9.png differ diff --git a/res/drawable-mdpi/tab_unselected_holo.9.png b/res/drawable-mdpi/tab_unselected_holo.9.png index e62198374..41f998ef2 100644 Binary files a/res/drawable-mdpi/tab_unselected_holo.9.png and b/res/drawable-mdpi/tab_unselected_holo.9.png differ diff --git a/res/drawable-mdpi/tab_unselected_pressed_focused_holo.9.png b/res/drawable-mdpi/tab_unselected_pressed_focused_holo.9.png index 384513584..f1a2819c5 100644 Binary files a/res/drawable-mdpi/tab_unselected_pressed_focused_holo.9.png and b/res/drawable-mdpi/tab_unselected_pressed_focused_holo.9.png differ diff --git a/res/drawable-mdpi/tab_unselected_pressed_holo.9.png b/res/drawable-mdpi/tab_unselected_pressed_holo.9.png index 23fd8c9b3..37c921679 100644 Binary files a/res/drawable-mdpi/tab_unselected_pressed_holo.9.png and b/res/drawable-mdpi/tab_unselected_pressed_holo.9.png differ diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index d2f52c839..c120de8f9 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -40,22 +40,18 @@ - - + + android:layout_gravity="bottom" /> + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-large/button_bar.xml b/res/layout-large/button_bar.xml index 8d7f5df2e..efe9e138a 100644 --- a/res/layout-large/button_bar.xml +++ b/res/layout-large/button_bar.xml @@ -29,7 +29,7 @@ android:paddingRight="@dimen/toolbar_button_horizontal_padding" android:paddingTop="@dimen/toolbar_button_vertical_padding" android:paddingBottom="@dimen/toolbar_button_vertical_padding" - android:src="@drawable/ic_generic_search" + android:src="@drawable/ic_search_normal_holo" android:background="@drawable/button_bg" android:onClick="onClickSearchButton" @@ -60,7 +60,7 @@ android:paddingRight="@dimen/toolbar_button_horizontal_padding" android:paddingTop="@dimen/toolbar_button_vertical_padding" android:paddingBottom="@dimen/toolbar_button_vertical_padding" - android:src="@drawable/ic_voice_search" + android:src="@drawable/ic_voice_search_holo" android:background="@drawable/button_bg" android:onClick="onClickVoiceButton" diff --git a/res/layout-large/qsb_bar.xml b/res/layout-large/qsb_bar.xml deleted file mode 100644 index b600eda2e..000000000 --- a/res/layout-large/qsb_bar.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/res/layout-large/search_bar.xml b/res/layout-large/search_bar.xml new file mode 100644 index 000000000..e26a96a48 --- /dev/null +++ b/res/layout-large/search_bar.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index acb3b474b..db074d758 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -38,24 +38,20 @@ - - + + android:layout_marginBottom="@dimen/button_bar_height" /> + + + + + + + + diff --git a/res/layout/apps_customize_pane.xml b/res/layout/apps_customize_pane.xml index a94b6e659..9d86c48d1 100644 --- a/res/layout/apps_customize_pane.xml +++ b/res/layout/apps_customize_pane.xml @@ -42,6 +42,8 @@ android:layout_height="match_parent" android:layout_gravity="right" android:gravity="center" + android:paddingLeft="@dimen/toolbar_button_horizontal_padding" + android:paddingRight="@dimen/toolbar_button_horizontal_padding" android:text="@string/market" android:contentDescription="@string/market" android:textColor="@color/workspace_all_apps_and_delete_zone_text_color" @@ -75,24 +77,19 @@ launcher:widgetCountX="@integer/apps_customize_widget_cell_count_x" launcher:widgetCountY="@integer/apps_customize_widget_cell_count_y" launcher:maxGap="@dimen/workspace_max_gap" /> - - + + android:layout_gravity="bottom" /> diff --git a/res/layout/qsb_bar.xml b/res/layout/qsb_bar.xml index 21043b410..b5b563b59 100644 --- a/res/layout/qsb_bar.xml +++ b/res/layout/qsb_bar.xml @@ -19,45 +19,8 @@ android:focusable="false"> - - - - - - - - - + + + \ No newline at end of file diff --git a/res/layout/scroll_indicator_track.xml b/res/layout/scroll_indicator_track.xml new file mode 100644 index 000000000..c0d065a14 --- /dev/null +++ b/res/layout/scroll_indicator_track.xml @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/res/values-large/dimens.xml b/res/values-large/dimens.xml index 90f262b17..7da10db41 100644 --- a/res/values-large/dimens.xml +++ b/res/values-large/dimens.xml @@ -15,6 +15,10 @@ --> + + 12dip + 12dip + 56dp diff --git a/res/values-large/styles.xml b/res/values-large/styles.xml index 531e2e625..254ecb8d0 100644 --- a/res/values-large/styles.xml +++ b/res/values-large/styles.xml @@ -19,6 +19,11 @@ + +