From 3559740ea05cbe88abbdebbc8a21f540c6d09132 Mon Sep 17 00:00:00 2001 From: Sihua Ma Date: Tue, 4 Oct 2022 14:01:37 -0700 Subject: [PATCH] Change padding of widget recommendation table for correct size Previously, the margin of the recommendation table was changed to fix the bug b/209579563 , but this leaves a bug where the left/right sides of the recommendation table would be too close to the screen border. This CL should leave enough space for both sides and reveal the scroll bar again, while keeping the talkback focused on the title first once it enters the widget picker. Test: Manual Bug: 206481237 Change-Id: I808c279c3264a51b21a0bb7af8ca455d284e36ff --- res/layout/widgets_full_sheet_recyclerview.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/res/layout/widgets_full_sheet_recyclerview.xml b/res/layout/widgets_full_sheet_recyclerview.xml index 9da3e87b17..b2a3a0d3d7 100644 --- a/res/layout/widgets_full_sheet_recyclerview.xml +++ b/res/layout/widgets_full_sheet_recyclerview.xml @@ -30,6 +30,7 @@ android:layout_height="wrap_content" android:layout_below="@id/collapse_handle" android:paddingBottom="16dp" + android:paddingHorizontal="@dimen/widget_list_horizontal_margin" android:orientation="vertical"> @@ -63,7 +62,6 @@ android:layout_marginTop="8dp" android:background="@drawable/widgets_recommendation_background" android:paddingVertical="@dimen/recommended_widgets_table_vertical_padding" - android:paddingHorizontal="@dimen/widget_list_horizontal_margin" android:visibility="gone" />