From ede641bd77316af26b4dae8d8204ce965f1937a5 Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Mon, 24 May 2021 11:39:54 +0100 Subject: [PATCH] Adjust padding, margin of tabs in the WidgetsFullSheet Also remove elevation set to tab to remove unwanted shadow. Test: Set up a work profile. Then, open the full widgets picker. Observe padding & margin of the work / personal tabs. Bug: 188221455 Change-Id: I761cb1c1410f87c80a5fdca3803fb8b099d499d6 --- res/layout/widgets_full_sheet_paged_view.xml | 1 + res/layout/widgets_personal_work_tabs.xml | 3 +-- res/values/dimens.xml | 2 ++ .../launcher3/widget/picker/WidgetsFullSheet.java | 11 ++++++++--- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/res/layout/widgets_full_sheet_paged_view.xml b/res/layout/widgets_full_sheet_paged_view.xml index 580ca496a3..f0ddc2bb66 100644 --- a/res/layout/widgets_full_sheet_paged_view.xml +++ b/res/layout/widgets_full_sheet_paged_view.xml @@ -21,6 +21,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false" + android:paddingTop="@dimen/widget_picker_view_pager_top_padding" android:descendantFocusability="afterDescendants" launcher:pageIndicator="@+id/tabs"> diff --git a/res/layout/widgets_personal_work_tabs.xml b/res/layout/widgets_personal_work_tabs.xml index 72d83e8874..15275a6df2 100644 --- a/res/layout/widgets_personal_work_tabs.xml +++ b/res/layout/widgets_personal_work_tabs.xml @@ -20,10 +20,9 @@ android:id="@+id/tabs" android:layout_width="match_parent" android:layout_height="@dimen/all_apps_header_pill_height" - android:layout_marginHorizontal="16dp" + android:layout_marginHorizontal="32dp" android:orientation="horizontal" android:background="@drawable/all_apps_tabs_background" - android:elevation="2dp" style="@style/TextHeadline">