From d5f8c3479a630b12bfa3fbfaedf160f9a7194b00 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Thu, 26 Apr 2012 14:56:12 -0700 Subject: Refactoring padding dimens for CellLayouts and Workspace Change-Id: Ib354b822588717b7bb81b4dcb14c834e5b8d4892 --- res/layout-land/launcher.xml | 6 ++++-- res/layout-port/launcher.xml | 6 ++++-- res/layout-sw720dp/workspace.xml | 5 ++++- res/layout-sw720dp/workspace_screen.xml | 33 --------------------------------- res/layout/workspace_screen.xml | 13 +++++++------ res/values-land/dimens.xml | 21 +++++++++++++-------- res/values-land/styles.xml | 6 ------ res/values-port/dimens.xml | 14 ++++++++++---- res/values-port/styles.xml | 6 ------ res/values-sw340dp/dimens.xml | 14 ++++++++++---- res/values-sw720dp-land/dimens.xml | 5 ----- res/values-sw720dp-port/dimens.xml | 5 ----- res/values-sw720dp/dimens.xml | 20 ++++++++++++++++++++ res/values/dimens.xml | 21 +++++++++++++++++++++ 14 files changed, 93 insertions(+), 82 deletions(-) delete mode 100644 res/layout-sw720dp/workspace_screen.xml (limited to 'res') diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 0c1a1955a..35f1a08ef 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -27,8 +27,10 @@ android:id="@+id/workspace" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingLeft="@dimen/qsb_bar_height" - android:paddingRight="@dimen/button_bar_height" + 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" diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index f6ff2e820..603038220 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -44,8 +44,10 @@ android:id="@+id/workspace" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingTop="@dimen/qsb_bar_height_inset" - android:paddingBottom="@dimen/button_bar_height" + 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" diff --git a/res/layout-sw720dp/workspace.xml b/res/layout-sw720dp/workspace.xml index 327afaf00..5658a4b4f 100644 --- a/res/layout-sw720dp/workspace.xml +++ b/res/layout-sw720dp/workspace.xml @@ -19,7 +19,10 @@ diff --git a/res/layout-sw720dp/workspace_screen.xml b/res/layout-sw720dp/workspace_screen.xml deleted file mode 100644 index 52f9defd9..000000000 --- a/res/layout-sw720dp/workspace_screen.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - diff --git a/res/layout/workspace_screen.xml b/res/layout/workspace_screen.xml index 23e1def68..d6e66f69d 100644 --- a/res/layout/workspace_screen.xml +++ b/res/layout/workspace_screen.xml @@ -17,16 +17,17 @@ + launcher:maxGap="@dimen/workspace_max_gap" /> \ No newline at end of file diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml index 5f03510f3..69d68be93 100644 --- a/res/values-land/dimens.xml +++ b/res/values-land/dimens.xml @@ -24,21 +24,26 @@ 74dp 64dp 58dp - - 0dp - 0dp - - 0dp - 0dp + height or the qsb bar height --> -1dp 0dp 0dp 12dp 12dp + + @dimen/cell_layout_left_padding_land + @dimen/cell_layout_right_padding_land + @dimen/cell_layout_top_padding_land + @dimen/cell_layout_bottom_padding_land + + @dimen/workspace_left_padding_land + @dimen/workspace_right_padding_land + @dimen/workspace_top_padding_land + @dimen/workspace_bottom_padding_land + 6dp diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml index 71ab65859..f4519ab34 100644 --- a/res/values-land/styles.xml +++ b/res/values-land/styles.xml @@ -18,12 +18,6 @@ --> - - - - - -