From 2015882fda4d52d8c114f645b552cc15e69ff145 Mon Sep 17 00:00:00 2001 From: Anna Zappone Date: Thu, 15 Apr 2021 11:16:30 +0000 Subject: [PATCH] Separate initial layout from placeholder layout We show different strings after reboot versus in the widget picker. Updates the placeholder & initial layout for mocks. Bug: 183085064 Test: none Change-Id: I4ec4415eee35d584316c2aa4d17a1dd8ad6061f3 --- .../layout/people_space_initial_layout.xml | 69 ++++++++++++++++ .../people_space_placeholder_layout.xml | 79 +++++++++---------- .../res/xml/people_space_widget_info.xml | 2 +- 3 files changed, 106 insertions(+), 44 deletions(-) create mode 100644 packages/SystemUI/res/layout/people_space_initial_layout.xml diff --git a/packages/SystemUI/res/layout/people_space_initial_layout.xml b/packages/SystemUI/res/layout/people_space_initial_layout.xml new file mode 100644 index 0000000000000..ec29d18d607dd --- /dev/null +++ b/packages/SystemUI/res/layout/people_space_initial_layout.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/people_space_placeholder_layout.xml b/packages/SystemUI/res/layout/people_space_placeholder_layout.xml index b85d6b097ec7f..2402bd710eca9 100644 --- a/packages/SystemUI/res/layout/people_space_placeholder_layout.xml +++ b/packages/SystemUI/res/layout/people_space_placeholder_layout.xml @@ -14,63 +14,56 @@ ~ limitations under the License. --> + + android:orientation="vertical" + android:paddingEnd="20dp" + android:gravity="bottom" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + android:layout_width="48dp" + android:layout_height="48dp" /> - - - - - - - + + + \ No newline at end of file diff --git a/packages/SystemUI/res/xml/people_space_widget_info.xml b/packages/SystemUI/res/xml/people_space_widget_info.xml index e3861470891d2..68e6ca8f3f216 100644 --- a/packages/SystemUI/res/xml/people_space_widget_info.xml +++ b/packages/SystemUI/res/xml/people_space_widget_info.xml @@ -26,5 +26,5 @@ android:previewLayout="@layout/people_space_placeholder_layout" android:resizeMode="horizontal|vertical" android:configure="com.android.systemui.people.PeopleSpaceActivity" - android:initialLayout="@layout/people_space_placeholder_layout"> + android:initialLayout="@layout/people_space_initial_layout">