OSDN Git Service

Update spec for CardPreference
authorjackqdyulei <jackqdyulei@google.com>
Mon, 11 Feb 2019 21:42:41 +0000 (13:42 -0800)
committerjackqdyulei <jackqdyulei@google.com>
Mon, 11 Feb 2019 21:42:41 +0000 (13:42 -0800)
Make icon and title align to other preference

Bug: 119618813
Test: Manual
Change-Id: I2b088fcfe0b005cde1d79db01806e1919cb131cc

res/layout/card_preference_layout.xml

index d4a06d6..bcaeb86 100644 (file)
         android:layout_height="wrap_content"
         android:layout_margin="8dp"
         style="@style/ContextualCardStyle">
-        <include layout="@layout/preference_material" />
+        <include
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginStart="-8dp"
+            layout="@layout/preference_material" />
     </com.google.android.material.card.MaterialCardView>
 </FrameLayout>