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
This commit is contained in:
fbaron
2023-04-05 23:30:18 -07:00
parent 296f8776f7
commit fad5b7ebae
2 changed files with 7 additions and 2 deletions

View File

@@ -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">
</LinearLayout>
<com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip

View File

@@ -59,7 +59,10 @@
android:id="@+id/suggestions_header"
android:layout_marginTop="8dp"
android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
android:orientation="horizontal">
android:paddingBottom="16dp"
android:orientation="horizontal"
android:background="?android:attr/colorBackground"
launcher:layout_sticky="true">
</LinearLayout>
</com.android.launcher3.views.StickyHeaderLayout>
</FrameLayout>