From 896d1ebd12e77262464b9ec61a1a8dbb545c6098 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 17 Dec 2010 10:35:49 -0800 Subject: [PATCH] Move the margins to the left pane in the preference panel. This way the margins can disappear along with the header pane, leaving the preference fragment pane properly aligned. Bug: 3290342 Change-Id: I71fa132907c50e89c0b88de33ae2d695b5aa88cd --- core/res/res/layout/preference_list_content.xml | 4 ++-- core/res/res/values-land/dimens.xml | 3 ++- core/res/res/values/dimens.xml | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/res/res/layout/preference_list_content.xml b/core/res/res/layout/preference_list_content.xml index e7783dac55d2e..a5f87d3a5fc64 100644 --- a/core/res/res/layout/preference_list_content.xml +++ b/core/res/res/layout/preference_list_content.xml @@ -34,7 +34,7 @@ android:orientation="vertical" android:layout_width="0px" android:layout_height="match_parent" - android:layout_marginRight="0dp" + android:layout_marginRight="@dimen/preference_screen_side_margin_negative" android:layout_marginLeft="@dimen/preference_screen_side_margin" android:layout_marginTop="32dp" android:layout_marginBottom="32dp" @@ -61,7 +61,7 @@ android:layout_width="0px" android:layout_height="match_parent" android:layout_weight="20" - android:layout_marginLeft="-4dp" + android:layout_marginLeft="@dimen/preference_screen_side_margin" android:layout_marginRight="@dimen/preference_screen_side_margin" android:layout_marginTop="16dp" android:layout_marginBottom="16dp" diff --git a/core/res/res/values-land/dimens.xml b/core/res/res/values-land/dimens.xml index b1f12b5156385..fbfc3bf6d1296 100644 --- a/core/res/res/values-land/dimens.xml +++ b/core/res/res/values-land/dimens.xml @@ -22,5 +22,6 @@ 47dip 2dip 96dp + -100dp 72dp - \ No newline at end of file + diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 2f0dfc1597f84..53d4e4229d59c 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -54,6 +54,8 @@ 4dip 0dp + + 0dp 56dp