From 5f1c509d5ad1954a7e38e77db4d5f27c7345fd39 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 3 Sep 2010 14:15:02 -0700 Subject: supporting swipable home screens on xlarge devices - icons and widgets on home screens can be "dimmed" - celllayout no longer renders a dimmed version of itself, but instead its children make dimmed versions of themselves - celllayout no longer always takes up full size of workspace, in landscape mode neighboring screens (celllayouts) are visible - on xlarge devices, in landscape mode side screens are "dimmed" - moved holographic outline helper to its own file - fixed bug where mini-screens were still able to scroll left/right Change-Id: I9e85ab4147edfae1e7525c3d11d42be3fabf4f6d --- res/layout-land/application.xml | 4 ++-- res/layout-port/application.xml | 2 +- res/layout-xlarge-land/workspace_screen.xml | 8 ++++---- res/layout-xlarge-port/workspace_screen.xml | 8 ++++---- res/values-xlarge/colors.xml | 1 + 5 files changed, 12 insertions(+), 11 deletions(-) (limited to 'res') diff --git a/res/layout-land/application.xml b/res/layout-land/application.xml index 6de565878..846c81c1d 100644 --- a/res/layout-land/application.xml +++ b/res/layout-land/application.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + diff --git a/res/layout-port/application.xml b/res/layout-port/application.xml index f904a661f..ec6697658 100644 --- a/res/layout-port/application.xml +++ b/res/layout-port/application.xml @@ -14,5 +14,5 @@ limitations under the License. --> - diff --git a/res/layout-xlarge-land/workspace_screen.xml b/res/layout-xlarge-land/workspace_screen.xml index 15fc3b19d..f35844371 100644 --- a/res/layout-xlarge-land/workspace_screen.xml +++ b/res/layout-xlarge-land/workspace_screen.xml @@ -18,13 +18,13 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" - android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:hapticFeedbackEnabled="false" launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" launcher:yAxisStartPadding="40dip" launcher:yAxisEndPadding="40dip" - launcher:xAxisStartPadding="256dip" - launcher:xAxisEndPadding="256dip" /> + launcher:xAxisStartPadding="40dip" + launcher:xAxisEndPadding="40dip" /> diff --git a/res/layout-xlarge-port/workspace_screen.xml b/res/layout-xlarge-port/workspace_screen.xml index eb7620ca6..7314e6046 100644 --- a/res/layout-xlarge-port/workspace_screen.xml +++ b/res/layout-xlarge-port/workspace_screen.xml @@ -18,13 +18,13 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" - android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:hapticFeedbackEnabled="false" launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" - launcher:yAxisStartPadding="172dip" - launcher:yAxisEndPadding="172dip" + launcher:yAxisStartPadding="40dip" + launcher:yAxisEndPadding="40dip" launcher:xAxisStartPadding="40dip" launcher:xAxisEndPadding="40dip"/> diff --git a/res/values-xlarge/colors.xml b/res/values-xlarge/colors.xml index a6cdd06bf..d4c6fadb4 100644 --- a/res/values-xlarge/colors.xml +++ b/res/values-xlarge/colors.xml @@ -18,4 +18,5 @@ --> #A50000FE + #FF7F7F7F \ No newline at end of file -- cgit v1.2.3