From fee9c2663a3b58f2213777349c3f799868ebdba3 Mon Sep 17 00:00:00 2001 From: jasonwshsu Date: Mon, 12 Oct 2020 15:00:35 +0800 Subject: [PATCH] Set the minimum height to the CheckBox Root Cause: Touch target of "container" is too small, reported by accessibility scanner. Suggest to enlarge bigger than 48dp. Solution: Set the minimum height to the CheckBox layout. If the container text in CheckBox is bigger than 48dp, it will follow the layout_height="wrap_content". Bug: 168264410 Test: manual test Change-Id: I50362baefd692e6bfbef1778eb2a5b72dd35ab7a --- res/layout/accessibility_edit_shortcut_component.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/res/layout/accessibility_edit_shortcut_component.xml b/res/layout/accessibility_edit_shortcut_component.xml index d257be63e23..0ccc88d3d24 100644 --- a/res/layout/accessibility_edit_shortcut_component.xml +++ b/res/layout/accessibility_edit_shortcut_component.xml @@ -32,6 +32,7 @@ android:id="@+id/checkbox" android:layout_width="match_parent" android:layout_height="wrap_content" + android:minHeight="48dp" android:background="@null" android:clickable="false" android:focusable="false"