summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-11-28 13:02:56 -0800
committerWinson Chung <winsonc@google.com>2011-11-28 16:24:54 -0800
commite96e5cb768fcc6f1211c8c31fa2da4dcd4e465cc (patch)
tree9de5ce7e779ec7c6d72e13786997ac5babe326b0 /res
parent8171d8ce48765cbc9e6ed96ac3dc173a8969616d (diff)
downloadandroid_packages_apps_Trebuchet-e96e5cb768fcc6f1211c8c31fa2da4dcd4e465cc.tar.gz
android_packages_apps_Trebuchet-e96e5cb768fcc6f1211c8c31fa2da4dcd4e465cc.tar.bz2
android_packages_apps_Trebuchet-e96e5cb768fcc6f1211c8c31fa2da4dcd4e465cc.zip
Fixing a few landscape issues.
- Fixing issue where widgets/icon names from side pages show in landscape (Bug 5665226) - Fixing issue where the workspace was rendering over the hotseat in landscape (Bug 5665226) - Fixing regression where the market button had no press feedback Change-Id: Idcd890fdddab2d463195c9b3000fe7a0ab357200
Diffstat (limited to 'res')
-rw-r--r--res/drawable/button_bg.xml4
-rw-r--r--res/layout-land/launcher.xml44
-rw-r--r--res/layout/market_button.xml1
-rw-r--r--res/values-land/dimens.xml4
4 files changed, 27 insertions, 26 deletions
diff --git a/res/drawable/button_bg.xml b/res/drawable/button_bg.xml
index a830594ea..e7b1bcd5a 100644
--- a/res/drawable/button_bg.xml
+++ b/res/drawable/button_bg.xml
@@ -15,7 +15,7 @@
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_focused="true" android:drawable="@drawable/focused_bg" />
- <item android:state_pressed="true" android:drawable="@drawable/home_press" />
+ <item android:state_focused="true" android:drawable="@drawable/tab_unselected_focused_holo" />
+ <item android:state_pressed="true" android:drawable="@drawable/tab_unselected_focused_holo" />
<item android:drawable="@android:color/transparent" />
</selector>
diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml
index a74eb14c8..c11c788d2 100644
--- a/res/layout-land/launcher.xml
+++ b/res/layout-land/launcher.xml
@@ -22,29 +22,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
- <!-- Keep these behind the workspace so that they are not visible when
- we go into AllApps -->
- <include
- android:id="@+id/qsb_divider"
- layout="@layout/workspace_divider"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/qsb_bar_height"
- android:layout_gravity="left" />
- <include
- android:id="@+id/dock_divider"
- layout="@layout/workspace_divider"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_marginRight="@dimen/button_bar_height"
- android:layout_gravity="right" />
- <include
- android:id="@+id/paged_view_indicator"
- layout="@layout/scroll_indicator"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom" />
-
<!-- The workspace contains 5 screens of cells -->
<com.android.launcher2.Workspace
android:id="@+id/workspace"
@@ -66,6 +43,27 @@
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
</com.android.launcher2.Workspace>
+ <include
+ android:id="@+id/qsb_divider"
+ layout="@layout/workspace_divider"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_marginLeft="@dimen/qsb_bar_height"
+ android:layout_gravity="left" />
+ <include
+ android:id="@+id/dock_divider"
+ layout="@layout/workspace_divider"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_marginRight="@dimen/button_bar_height"
+ android:layout_gravity="right" />
+ <include
+ android:id="@+id/paged_view_indicator"
+ layout="@layout/scroll_indicator"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom" />
+
<include layout="@layout/hotseat"
android:id="@+id/hotseat"
android:layout_width="@dimen/button_bar_height_plus_padding"
diff --git a/res/layout/market_button.xml b/res/layout/market_button.xml
index 5e1015631..27eb3fd36 100644
--- a/res/layout/market_button.xml
+++ b/res/layout/market_button.xml
@@ -21,6 +21,7 @@
android:gravity="center"
android:paddingLeft="16dp"
android:paddingRight="16dp"
+ android:background="@drawable/tab_widget_indicator_selector"
android:contentDescription="@string/market"
android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
android:shadowDx="0.0"
diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml
index 89e6773fc..6d0261f89 100644
--- a/res/values-land/dimens.xml
+++ b/res/values-land/dimens.xml
@@ -31,7 +31,9 @@
really only in spring loaded mode... -->
<dimen name="workspace_top_padding">0dp</dimen>
<dimen name="workspace_bottom_padding">0dp</dimen>
- <dimen name="workspace_page_spacing">-1dp</dimen>
+ <!-- We really want the page spacing to be the max of either the button bar
+ height or the qsb bar height -->
+ <dimen name="workspace_page_spacing">@dimen/button_bar_height</dimen>
<dimen name="workspace_divider_padding_left">0dp</dimen>
<dimen name="workspace_divider_padding_right">0dp</dimen>
<dimen name="workspace_divider_padding_top">12dp</dimen>