diff options
| author | 2020-11-17 12:01:08 +0000 | |
|---|---|---|
| committer | 2020-11-17 12:01:08 +0000 | |
| commit | 0d98e8aeec98f4e5dea7b2fdc28e69f6ca741cf8 (patch) | |
| tree | 48c2100bd4b376a23333b156577206d587169b36 | |
| parent | 660f7cd8f10eeddc85ffd84be4376e7a3beb9d83 (diff) | |
| parent | 46ef1fc00f503d218f7ee16ce386aa3c537f926c (diff) | |
Merge "Change People Space widget background."
4 files changed, 32 insertions, 11 deletions
diff --git a/packages/SystemUI/res/drawable/people_space_tile_view_card.xml b/packages/SystemUI/res/drawable/people_space_tile_view_card.xml index 6b81703bd343..4772ae76179e 100644 --- a/packages/SystemUI/res/drawable/people_space_tile_view_card.xml +++ b/packages/SystemUI/res/drawable/people_space_tile_view_card.xml @@ -15,14 +15,5 @@ --> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@android:color/white" /> - <padding - android:left="1dp" - android:top="1dp" - android:right="1dp" - android:bottom="1dp" /> - <corners - android:bottomRightRadius="7dp" - android:bottomLeftRadius="7dp" - android:topRightRadius="7dp" - android:topLeftRadius="7dp" /> + <corners android:radius="@dimen/people_space_widget_radius" /> </shape>
\ No newline at end of file diff --git a/packages/SystemUI/res/drawable/people_space_widget_background.xml b/packages/SystemUI/res/drawable/people_space_widget_background.xml new file mode 100644 index 000000000000..b9293598bd00 --- /dev/null +++ b/packages/SystemUI/res/drawable/people_space_widget_background.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2020 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/colorControlNormal" /> + <corners android:radius="@dimen/people_space_widget_radius" /> + <padding + android:left="@dimen/people_space_widget_background_padding" + android:top="@dimen/people_space_widget_background_padding" + android:right="@dimen/people_space_widget_background_padding" + android:bottom="@dimen/people_space_widget_background_padding"/> +</shape> diff --git a/packages/SystemUI/res/layout/people_space_widget.xml b/packages/SystemUI/res/layout/people_space_widget.xml index 60200993e3bf..b417fcf6424d 100644 --- a/packages/SystemUI/res/layout/people_space_widget.xml +++ b/packages/SystemUI/res/layout/people_space_widget.xml @@ -19,7 +19,7 @@ android:id="@+id/widget_list_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@android:color/holo_blue_light" + android:background="@drawable/people_space_widget_background" android:clipChildren="false" android:clipToPadding="false" android:padding="5dp" diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index d946f7cb11c1..4c28b6ab7dfe 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -1296,4 +1296,7 @@ <dimen name="media_output_dialog_header_icon_padding">16dp</dimen> <dimen name="media_output_dialog_icon_corner_radius">16dp</dimen> <dimen name="media_output_dialog_title_anim_y_delta">12.5dp</dimen> + + <dimen name="people_space_widget_radius">10dp</dimen> + <dimen name="people_space_widget_background_padding">6dp</dimen> </resources> |