From 2b8e44577096a737b97c6687fc8ad1f067ea1e89 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 26 Aug 2011 18:12:08 -0700 Subject: Tweaking grid spacing (5162387) Change-Id: I67ebe3484f504d5f987486c80d4d21db3c2e06e1 --- res/layout-land/hotseat.xml | 17 +++++++----- res/layout-land/launcher.xml | 8 +++--- res/layout-port/hotseat.xml | 16 +++++++----- res/layout-port/launcher.xml | 6 ++--- res/layout/qsb_bar.xml | 1 + res/layout/workspace_screen.xml | 4 +-- res/values-h560dp/config.xml | 21 +++++++++++++++ res/values-h560dp/dimens.xml | 45 ++++++++++++++++++++++++++++++++ res/values-h560dp/styles.xml | 28 ++++++++++++++++++++ res/values-land/config.xml | 18 +++++++++++++ res/values-land/dimens.xml | 5 +++- res/values-land/styles.xml | 8 +++++- res/values-large/config.xml | 2 ++ res/values-port/styles.xml | 2 +- res/values-w560dp/dimens.xml | 45 ++++++++++++++++++++++++++++++++ res/values-w560dp/styles.xml | 28 ++++++++++++++++++++ res/values/config.xml | 2 ++ res/values/dimens.xml | 11 +++++--- res/values/strings.xml | 2 +- res/values/styles.xml | 6 +++++ src/com/android/launcher2/Workspace.java | 9 ++----- 21 files changed, 245 insertions(+), 39 deletions(-) create mode 100644 res/values-h560dp/config.xml create mode 100644 res/values-h560dp/dimens.xml create mode 100644 res/values-h560dp/styles.xml create mode 100644 res/values-w560dp/dimens.xml create mode 100644 res/values-w560dp/styles.xml diff --git a/res/layout-land/hotseat.xml b/res/layout-land/hotseat.xml index dca30bf3f..f6d234709 100644 --- a/res/layout-land/hotseat.xml +++ b/res/layout-land/hotseat.xml @@ -16,18 +16,21 @@ diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 5af49a2d7..2b25bbb70 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -66,11 +66,9 @@ - + layout="@layout/qsb_bar" /> diff --git a/res/layout-port/hotseat.xml b/res/layout-port/hotseat.xml index 19da94480..ee59a6ab8 100644 --- a/res/layout-port/hotseat.xml +++ b/res/layout-port/hotseat.xml @@ -16,19 +16,21 @@ diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 1bd8d7c21..b45800ef5 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -67,11 +67,9 @@ - + layout="@layout/qsb_bar" /> diff --git a/res/layout/workspace_screen.xml b/res/layout/workspace_screen.xml index c7d30ced7..23e1def68 100644 --- a/res/layout/workspace_screen.xml +++ b/res/layout/workspace_screen.xml @@ -27,6 +27,6 @@ launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" - launcher:widthGap="-1dp" - launcher:heightGap="-1dp" + launcher:widthGap="@dimen/workspace_width_gap" + launcher:heightGap="@dimen/workspace_height_gap" launcher:maxGap="@dimen/workspace_max_gap" /> diff --git a/res/values-h560dp/config.xml b/res/values-h560dp/config.xml new file mode 100644 index 000000000..d1f308576 --- /dev/null +++ b/res/values-h560dp/config.xml @@ -0,0 +1,21 @@ + + + + + + + true + diff --git a/res/values-h560dp/dimens.xml b/res/values-h560dp/dimens.xml new file mode 100644 index 000000000..4894fc43f --- /dev/null +++ b/res/values-h560dp/dimens.xml @@ -0,0 +1,45 @@ + + + + + + 0dp + 0dp + -1dp + -1dp + -1dp + -1dp + 20dp + 20dp + + 0dp + 0dp + -1dp + -1dp + -1dp + -1dp + + 48dp + + 80dip + + 8dp + 8dp + 8dp + 8dp + 80dp + diff --git a/res/values-h560dp/styles.xml b/res/values-h560dp/styles.xml new file mode 100644 index 000000000..84d43df8e --- /dev/null +++ b/res/values-h560dp/styles.xml @@ -0,0 +1,28 @@ + + + + + + + diff --git a/res/values-land/config.xml b/res/values-land/config.xml index adbc015b5..2fee8cfb8 100644 --- a/res/values-land/config.xml +++ b/res/values-land/config.xml @@ -1,5 +1,23 @@ + + + false + + true diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml index 55a25ec68..da42b8566 100644 --- a/res/values-land/dimens.xml +++ b/res/values-land/dimens.xml @@ -41,7 +41,10 @@ 68dip - 8dp + 8dp + 0dp + 0dp + 0dp 76dp diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml index 437a51110..104da63d6 100644 --- a/res/values-land/styles.xml +++ b/res/values-land/styles.xml @@ -21,9 +21,15 @@ + diff --git a/res/values-w560dp/dimens.xml b/res/values-w560dp/dimens.xml new file mode 100644 index 000000000..b08159b50 --- /dev/null +++ b/res/values-w560dp/dimens.xml @@ -0,0 +1,45 @@ + + + + + + 0dp + 0dp + -1dp + -1dp + -1dp + -1dp + 20dp + 20dp + + 0dp + 0dp + -1dp + -1dp + -1dp + -1dp + + 48dp + + 80dip + + 8dp + 8dp + 8dp + 8dp + 80dp + diff --git a/res/values-w560dp/styles.xml b/res/values-w560dp/styles.xml new file mode 100644 index 000000000..edd63a4ce --- /dev/null +++ b/res/values-w560dp/styles.xml @@ -0,0 +1,28 @@ + + + + + + + diff --git a/res/values/config.xml b/res/values/config.xml index e88a83eac..76c9be829 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -44,6 +44,8 @@ true + + false 100 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 0d44db864..0111a9c8e 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -22,8 +22,6 @@ 40dp 80dp 100dp - 64dp - 64dp -1dp -1dp 16dp @@ -33,6 +31,10 @@ 12dp 0dp 0dp + 64dp + 64dp + -1dp + -1dp 0dip @@ -53,7 +55,10 @@ 64dip - 8dp + 8dp + 0dp + 0dp + 0dp 72dp diff --git a/res/values/strings.xml b/res/values/strings.xml index a238eb489..65ed04b96 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -149,7 +149,7 @@ s --> Notifications - System Settings + System settings Help diff --git a/res/values/styles.xml b/res/values/styles.xml index 6e1ae6aaf..b510566e9 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -108,6 +108,12 @@ 6dp +