Fine-tune the layout of shortcut preference.

The checkbox position of shortcut preference is not consistent with
  others internal components.

Bug: b/147270184
Bug: b/142530063
Fix: b/147270184
Test: manual test
Change-Id: Ie1c2e5909e814180ff731c5bf0b362f6f1489dec
This commit is contained in:
Peter_Liang
2020-01-07 14:43:57 +08:00
committed by Menghan Li
parent 8ef01d25fb
commit 9a6bf825e8

View File

@@ -31,19 +31,14 @@
android:gravity="start|center_vertical"
android:focusable="true"
android:clickable="true"
android:background="?android:attr/selectableItemBackground"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
android:background="?android:attr/selectableItemBackground">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="start|center_vertical"
android:layout_height="match_parent"
android:layout_marginEnd="16dp"
android:minWidth="56dp"
android:orientation="horizontal"
android:paddingRight="16dp"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:focusable="false"
android:clickable="false">