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
This commit is contained in:
Steven Ng
2021-05-12 18:15:30 +01:00
parent 56d59c655c
commit cdd02c5c70
2 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="?android:attr/colorSurfaceVariant" />
<corners android:radius="@dimen/system_app_widget_background_radius" />
</shape>

View File

@@ -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">
<com.android.internal.widget.DisableImageView
android:id="@+id/work_widget_app_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
android:clickable="false" />