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
This commit is contained in:
jasonwshsu
2020-10-12 15:00:35 +08:00
parent 1ae5e59c32
commit fee9c2663a

View File

@@ -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"