Change PreferenceCategory margins.

Top and bottom margins of the frame layout are changed to 8dp per bug
request. A 16dp top margin was added to the title in order to match
mocks provided in bug.

This also fixes the WifiPicker currently connectected access point to
make it centered.

Bug: 34978500, 34714183
Test: Visual. See screenshot in comments.
Change-Id: Idfa978b2defeb9b3f16651d670c5578f33b02656
This commit is contained in:
Sundeep Ghuman
2017-02-06 18:31:42 -08:00
parent b4645cf3de
commit 435c6ca014

View File

@@ -21,9 +21,9 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="16dp" android:layout_marginTop="8dp"
android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:layout_marginBottom="8dp"
android:paddingTop="16dp"> android:paddingStart="?android:attr/listPreferredItemPaddingStart" >
<LinearLayout <LinearLayout
android:id="@+id/icon_container" android:id="@+id/icon_container"
@@ -47,6 +47,7 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@android:id/title" android:id="@android:id/title"
android:layout_marginTop="16dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@android:style/TextAppearance.Material.Body2" android:textAppearance="@android:style/TextAppearance.Material.Body2"