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
This commit is contained in:
Amith Yamasani
2010-12-17 10:35:49 -08:00
parent d3040307ab
commit 896d1ebd12
3 changed files with 6 additions and 3 deletions

View File

@@ -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"

View File

@@ -22,5 +22,6 @@
<dimen name="password_keyboard_key_height">47dip</dimen>
<dimen name="password_keyboard_spacebar_vertical_correction">2dip</dimen>
<dimen name="preference_screen_side_margin">96dp</dimen>
<dimen name="preference_screen_side_margin_negative">-100dp</dimen>
<dimen name="preference_widget_width">72dp</dimen>
</resources>
</resources>

View File

@@ -54,6 +54,8 @@
<dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen>
<!-- Preference activity side margins -->
<dimen name="preference_screen_side_margin">0dp</dimen>
<!-- Preference activity side margins negative-->
<dimen name="preference_screen_side_margin_negative">0dp</dimen>
<!-- Preference widget area width (to the left of the text) -->
<dimen name="preference_widget_width">56dp</dimen>
</resources>