From 8eb1f73d58166684a141e440781fcec4dc9317da Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Thu, 18 Mar 2021 14:59:18 +0000 Subject: [PATCH] A11y fix for all widgets tray (Part 1 / n) Mark some image view unimportant for accessibility. Still need to update the content description for widget list header to describe the expand / collapse action. Test: Navigate all widgets tray with talkback enabled. Bug: 183120145 Change-Id: I1801d8351ac7f22a0135a96a36de706377781b31 --- res/layout/widget_cell_content.xml | 1 + res/layout/widgets_full_sheet_paged_view.xml | 9 ++++----- res/layout/widgets_list_row_header.xml | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/res/layout/widget_cell_content.xml b/res/layout/widget_cell_content.xml index 50908a49ba..7b85d9bcd5 100644 --- a/res/layout/widget_cell_content.xml +++ b/res/layout/widget_cell_content.xml @@ -24,6 +24,7 @@ android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" + android:importantForAccessibility="no" android:layout_marginVertical="8dp" /> diff --git a/res/layout/widgets_full_sheet_paged_view.xml b/res/layout/widgets_full_sheet_paged_view.xml index 8125db8333..ae877d46bf 100644 --- a/res/layout/widgets_full_sheet_paged_view.xml +++ b/res/layout/widgets_full_sheet_paged_view.xml @@ -16,11 +16,6 @@ - - + \ No newline at end of file diff --git a/res/layout/widgets_list_row_header.xml b/res/layout/widgets_list_row_header.xml index 62345b39a6..ed3a042148 100644 --- a/res/layout/widgets_list_row_header.xml +++ b/res/layout/widgets_list_row_header.xml @@ -71,6 +71,7 @@ android:layout_gravity="center_vertical" android:layout_alignParentEnd="true" android:clickable="false" + android:importantForAccessibility="no" android:button="@drawable/widgets_tray_expand_button"/> \ No newline at end of file