OSDN Git Service

Change PreferenceCategory margins.
authorSundeep Ghuman <sghuman@google.com>
Tue, 7 Feb 2017 02:31:42 +0000 (18:31 -0800)
committerSundeep Ghuman <sghuman@google.com>
Wed, 8 Feb 2017 03:44:06 +0000 (19:44 -0800)
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: 3497850034714183
Test: Visual. See screenshot in comments.
Change-Id: Idfa978b2defeb9b3f16651d670c5578f33b02656

res/layout/preference_category_material_settings.xml

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