commit | 79c8841c0f489783bed3f3cde36f629016c427d1 | [log] [tgz] |
---|---|---|
author | Chuck Liao <chuckliao@google.com> | Sat Sep 11 18:58:56 2021 +0800 |
committer | Chuck Liao <chuckliao@google.com> | Sat Sep 11 20:58:56 2021 +0800 |
tree | 4203012c336d3444d5cf8c68caf4b7de0d18d776 | |
parent | d4c21687fba800e993b0a54b3c18402361d000f4 [diff] |
Fix the cutoff of switch button Adjust the switch height for matching its container size in the smallest font size setting. Before: https://screenshot.googleplex.com/4mzzRFGozcHRCi7.png After: https://screenshot.googleplex.com/5Mdnpgo4PgvADPo.png Bug: 199455699 Test: manual Change-Id: I3eb55b579fa001fc0f6bb18f3758ba806e4f0d52
diff --git a/res/layout/themed_icon_section_view.xml b/res/layout/themed_icon_section_view.xml index 97892ee..cf7b842 100644 --- a/res/layout/themed_icon_section_view.xml +++ b/res/layout/themed_icon_section_view.xml
@@ -28,6 +28,7 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" android:orientation="horizontal"> <TextView @@ -42,7 +43,7 @@ <Switch android:id="@+id/themed_icon_toggle" android:layout_width="wrap_content" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:background="@null" android:clickable="false" android:focusable="false"