Improve the touch target size of check box in shortcut dialog.

Bug: 147773911
Bug: 147774273
Test: Local test
Change-Id: Id63b70d4a5223a5a415b9d3229c92a0bd77363e6
This commit is contained in:
menghanli
2020-01-20 21:25:53 +08:00
parent e4cdbcba62
commit 36baf99fc8
2 changed files with 14 additions and 7 deletions

View File

@@ -26,20 +26,25 @@
android:id="@+id/checkbox" android:id="@+id/checkbox"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:saveEnabled="false"/> android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:saveEnabled="false"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="?android:attr/textColorAlertDialogListItem" />
<TextView <TextView
android:id="@+id/summary" android:id="@+id/summary"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary" android:paddingBottom="8dp"
android:paddingStart="32dp"/> android:paddingStart="32dp"
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
android:textColor="?android:attr/textColorSecondary" />
<ImageView <ImageView
android:id="@+id/image" android:id="@+id/image"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="32dp" android:paddingStart="32dp"
android:scaleType="fitCenter"/> android:scaleType="fitCenter" />
</LinearLayout> </LinearLayout>

View File

@@ -52,8 +52,10 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textColor="?android:attr/colorAccent" android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:text="@string/accessibility_shortcut_edit_dialog_title_advance"/> android:text="@string/accessibility_shortcut_edit_dialog_title_advance"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="?android:attr/colorAccent" />
</LinearLayout>> </LinearLayout>>