From 0011e80e7dc7f7c13139c4ead1efd7b0ffc5fb42 Mon Sep 17 00:00:00 2001 From: Joy Babafemi Date: Mon, 29 Jan 2024 17:48:06 +0000 Subject: Add minimum touch target to dropdown and fix strings for talkback annoucement Bug: 322448504 Change-Id: I844e89ccfc6f69088a60db8e20e49cc79aa7e983 --- .../CredentialManager/res/layout/credman_dropdown_bottom_sheet.xml | 1 + .../res/layout/credman_dropdown_presentation_layout.xml | 3 ++- packages/CredentialManager/res/values/dimens.xml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/CredentialManager/res/layout/credman_dropdown_bottom_sheet.xml b/packages/CredentialManager/res/layout/credman_dropdown_bottom_sheet.xml index 929756cdf9cc..b97e9927e0ed 100644 --- a/packages/CredentialManager/res/layout/credman_dropdown_bottom_sheet.xml +++ b/packages/CredentialManager/res/layout/credman_dropdown_bottom_sheet.xml @@ -17,6 +17,7 @@ android:id="@android:id/content" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:minWidth="@dimen/dropdown_touch_target_min_width" android:orientation="horizontal" android:layout_marginEnd="@dimen/dropdown_layout_horizontal_margin" android:elevation="3dp"> diff --git a/packages/CredentialManager/res/layout/credman_dropdown_presentation_layout.xml b/packages/CredentialManager/res/layout/credman_dropdown_presentation_layout.xml index 1fe5e0ed41f9..261154fe9792 100644 --- a/packages/CredentialManager/res/layout/credman_dropdown_presentation_layout.xml +++ b/packages/CredentialManager/res/layout/credman_dropdown_presentation_layout.xml @@ -17,6 +17,7 @@ android:id="@android:id/content" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:minWidth="@dimen/dropdown_touch_target_min_width" android:layout_marginEnd="@dimen/dropdown_layout_horizontal_margin" android:elevation="3dp"> @@ -24,7 +25,7 @@ android:id="@android:id/icon1" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:contentDescription="@string/provider_icon_content_description" + android:contentDescription="@string/dropdown_presentation_more_sign_in_options_text" android:layout_centerVertical="true" android:layout_alignParentStart="true" android:background="@null"/> diff --git a/packages/CredentialManager/res/values/dimens.xml b/packages/CredentialManager/res/values/dimens.xml index 3a8c78f6d854..53852cbd0d10 100644 --- a/packages/CredentialManager/res/values/dimens.xml +++ b/packages/CredentialManager/res/values/dimens.xml @@ -27,4 +27,5 @@ 230dp 24dp 3 + 48dp \ No newline at end of file -- cgit v1.2.3-59-g8ed1b