From fad5b7ebae1df0106a7c935cba1de51db69476e7 Mon Sep 17 00:00:00 2001 From: fbaron Date: Wed, 5 Apr 2023 23:30:18 -0700 Subject: [PATCH] Make suggestions header sticky in widget picker two pane The final design makes the suggestions header sticky, but the implementation has it following the original design which wasn't sticky. This CL makes the header sticky. Bug: 277163859 Test: Verify that suggestions header is sticky in both 1 profile view and in work/personal profile view Change-Id: I795617edc6d5ba410a97ff87385ec40a62abbc3e --- res/layout/widgets_two_pane_sheet_paged_view.xml | 4 +++- res/layout/widgets_two_pane_sheet_recyclerview.xml | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/res/layout/widgets_two_pane_sheet_paged_view.xml b/res/layout/widgets_two_pane_sheet_paged_view.xml index 5cc24068fd..d3a85849fc 100644 --- a/res/layout/widgets_two_pane_sheet_paged_view.xml +++ b/res/layout/widgets_two_pane_sheet_paged_view.xml @@ -74,7 +74,9 @@ android:id="@+id/suggestions_header" android:layout_marginTop="8dp" android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane" - android:orientation="horizontal"> + android:orientation="horizontal" + android:background="?android:attr/colorBackground" + launcher:layout_sticky="true"> + android:paddingBottom="16dp" + android:orientation="horizontal" + android:background="?android:attr/colorBackground" + launcher:layout_sticky="true">