From 0e721a4005b4d119cf641ca0dd0d8744672646f0 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 2 Aug 2012 17:40:30 -0700 Subject: Initial changes for new 10inch layout. Change-Id: Ifaafca469df626a76ab5e16bd2f0d5afa1da172c --- res/layout-port/search_bar.xml | 2 +- res/layout-sw720dp-land/application.xml | 20 --------- res/layout-sw720dp-port/application.xml | 18 -------- res/layout-sw720dp/hotseat.xml | 36 +++++++++++++++ res/layout-sw720dp/launcher.xml | 67 ++++++++++++++++++++++++---- res/layout-sw720dp/search_bar.xml | 79 ++++++++++++++++----------------- res/values-land/styles.xml | 6 +-- res/values-sw720dp-port/dimens.xml | 13 ++++++ res/values-sw720dp/config.xml | 5 +++ res/values-sw720dp/dimens.xml | 70 ++++++++++++++++++----------- res/values-sw720dp/styles.xml | 15 ++----- res/values/config.xml | 3 ++ res/values/styles.xml | 6 +-- src/com/android/launcher2/Hotseat.java | 18 ++++++-- src/com/android/launcher2/Launcher.java | 21 +-------- 15 files changed, 221 insertions(+), 158 deletions(-) delete mode 100644 res/layout-sw720dp-land/application.xml delete mode 100644 res/layout-sw720dp-port/application.xml create mode 100644 res/layout-sw720dp/hotseat.xml diff --git a/res/layout-port/search_bar.xml b/res/layout-port/search_bar.xml index 85da2f155..8f58fe61f 100644 --- a/res/layout-port/search_bar.xml +++ b/res/layout-port/search_bar.xml @@ -47,7 +47,7 @@ - - - diff --git a/res/layout-sw720dp-port/application.xml b/res/layout-sw720dp-port/application.xml deleted file mode 100644 index af7a8a4df..000000000 --- a/res/layout-sw720dp-port/application.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - diff --git a/res/layout-sw720dp/hotseat.xml b/res/layout-sw720dp/hotseat.xml new file mode 100644 index 000000000..bcd5b9d82 --- /dev/null +++ b/res/layout-sw720dp/hotseat.xml @@ -0,0 +1,36 @@ + + + + + diff --git a/res/layout-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index 65149f29a..9ddb1355c 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/launcher.xml @@ -1,5 +1,5 @@ - + + + + + + android:layout_height="match_parent" + android:paddingLeft="@dimen/workspace_left_padding" + android:paddingRight="@dimen/workspace_right_padding" + android:paddingTop="@dimen/workspace_top_padding" + android:paddingBottom="@dimen/workspace_bottom_padding" + launcher:defaultScreen="2" + launcher:cellCountX="@integer/cell_count_x" + launcher:cellCountY="@integer/cell_count_y" + launcher:pageSpacing="@dimen/workspace_page_spacing" + launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left" + launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right"> - + + + + + + + + + + + + android:layout_marginRight="@dimen/qsb_voice_proxy_padding_right" + android:layout_gravity="top|right" + android:clickable="true" + android:onClick="onClickVoiceButton" + android:importantForAccessibility="no" + launcher:sourceViewId="@+id/voice_button" /> + android:layout_height="@dimen/search_bar_height" + android:layout_gravity="bottom|center_horizontal" + android:background="@drawable/search_frame"> - - - + android:contentDescription="@string/accessibility_search_button"> + + - - - - + android:contentDescription="@string/accessibility_voice_search_button"> + + diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml index df3356ee2..5b9de3ea9 100644 --- a/res/values-land/styles.xml +++ b/res/values-land/styles.xml @@ -29,6 +29,7 @@ vertical match_parent wrap_content + center_horizontal - - - -