From cdd02c5c70e20c62ed32d7f03921e6b2212676bc Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Wed, 12 May 2021 18:15:30 +0100 Subject: [PATCH] Update widget suspended layout 1. set app icon to 48dpx48dp 2. set rounded corners of the background to 28dp Test: Turn off work profile and observe the work profile widget layout. Bug: 187828998 Change-Id: Ic6bcac170fdd66f440b2c119620933d70ec9c2c0 --- .../work_widget_mask_view_background.xml | 19 +++++++++++++++++++ core/res/res/layout/work_widget_mask_view.xml | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 core/res/res/drawable/work_widget_mask_view_background.xml diff --git a/core/res/res/drawable/work_widget_mask_view_background.xml b/core/res/res/drawable/work_widget_mask_view_background.xml new file mode 100644 index 0000000000000..ce9c514695c4b --- /dev/null +++ b/core/res/res/drawable/work_widget_mask_view_background.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/core/res/res/layout/work_widget_mask_view.xml b/core/res/res/layout/work_widget_mask_view.xml index e7174cc58438a..86c5d13ede40f 100644 --- a/core/res/res/layout/work_widget_mask_view.xml +++ b/core/res/res/layout/work_widget_mask_view.xml @@ -18,14 +18,14 @@ Copyright (C) 2015 The Android Open Source Project android:id="@+id/work_widget_mask_frame" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?android:attr/colorSurfaceVariant" + android:background="@drawable/work_widget_mask_view_background" android:importantForAccessibility="noHideDescendants" android:clickable="true">