From c54a8c3c65f08356718ff8f7fcfb9c31e833dc0d Mon Sep 17 00:00:00 2001 From: fbaron Date: Thu, 18 May 2023 16:23:25 -0700 Subject: [PATCH] Fix switching between work and personal profile in widget picker not clipping recyclerview Fix: 283139508 Test: Verify swiping between work and personal profile clips the recyclerview properly Flag: no flag Change-Id: I7f4ccd6981f91a5ccb9705eca67823c8c81c262f --- res/layout/widgets_full_sheet.xml | 1 + res/layout/widgets_full_sheet_paged_view.xml | 4 +++- res/layout/widgets_two_pane_sheet_paged_view.xml | 8 ++------ res/layout/widgets_two_pane_sheet_recyclerview.xml | 3 +-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/res/layout/widgets_full_sheet.xml b/res/layout/widgets_full_sheet.xml index 9ec346a261..47bf9e7769 100644 --- a/res/layout/widgets_full_sheet.xml +++ b/res/layout/widgets_full_sheet.xml @@ -58,6 +58,7 @@ @@ -67,6 +66,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:elevation="0.1dp" + android:paddingHorizontal="@dimen/widget_list_horizontal_margin" android:background="?attr/widgetPickerPrimarySurfaceColor" android:paddingBottom="8dp" launcher:layout_sticky="true"> @@ -78,6 +78,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" + android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin" android:background="@drawable/widgets_surface_background" android:paddingVertical="@dimen/recommended_widgets_table_vertical_padding" android:visibility="gone" /> @@ -89,6 +90,7 @@ android:gravity="center_horizontal" android:orientation="horizontal" android:paddingVertical="8dp" + android:paddingHorizontal="@dimen/widget_list_horizontal_margin" android:background="?attr/widgetPickerPrimarySurfaceColor" style="@style/TextHeadline" launcher:layout_sticky="true"> diff --git a/res/layout/widgets_two_pane_sheet_paged_view.xml b/res/layout/widgets_two_pane_sheet_paged_view.xml index 2e05d48bb6..442957a9be 100644 --- a/res/layout/widgets_two_pane_sheet_paged_view.xml +++ b/res/layout/widgets_two_pane_sheet_paged_view.xml @@ -13,14 +13,14 @@ limitations under the License. --> + xmlns:launcher="http://schemas.android.com/apk/res-auto"> @@ -73,7 +71,6 @@ android:layout_height="match_parent" android:id="@+id/suggestions_header" android:layout_marginTop="8dp" - android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane" android:orientation="horizontal" android:background="?attr/widgetPickerPrimarySurfaceColor" launcher:layout_sticky="true"> @@ -86,7 +83,6 @@ android:gravity="center_horizontal" android:orientation="horizontal" android:paddingVertical="8dp" - android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane" android:background="?attr/widgetPickerPrimarySurfaceColor" style="@style/TextHeadline" launcher:layout_sticky="true"> diff --git a/res/layout/widgets_two_pane_sheet_recyclerview.xml b/res/layout/widgets_two_pane_sheet_recyclerview.xml index f8d72e89d4..c9c855c48d 100644 --- a/res/layout/widgets_two_pane_sheet_recyclerview.xml +++ b/res/layout/widgets_two_pane_sheet_recyclerview.xml @@ -13,8 +13,7 @@ limitations under the License. --> + xmlns:launcher="http://schemas.android.com/apk/res-auto">