From e4931c88d5dd40451db41ed73c87bf5d122367a7 Mon Sep 17 00:00:00 2001 From: Flavio Fiszman Date: Tue, 23 Mar 2021 18:09:07 +0000 Subject: [PATCH] Change People Tile config activity layout Change-Id: I7df41980e1d9fe6b14a91be9ff68fad0c1c7185f Test: manual Bug: 183721209 --- packages/SystemUI/AndroidManifest.xml | 2 +- .../drawable/people_space_activity_card.xml | 3 +- .../drawable/rounded_bg_full_large_radius.xml | 20 +++ .../res/layout/people_space_activity.xml | 117 +++++++++++++----- .../people_space_activity_list_divider.xml | 21 ++++ ...people_space_activity_no_conversations.xml | 78 ++++++++++++ .../res/layout/people_space_tile_view.xml | 19 +-- packages/SystemUI/res/values/strings.xml | 8 ++ packages/SystemUI/res/values/styles.xml | 5 + .../systemui/people/PeopleSpaceActivity.java | 97 +++++++++++---- .../systemui/people/PeopleSpaceTileView.java | 14 +-- .../systemui/people/PeopleSpaceUtils.java | 28 +++-- .../systemui/people/PeopleSpaceUtilsTest.java | 31 +++-- 13 files changed, 343 insertions(+), 100 deletions(-) create mode 100644 packages/SystemUI/res/drawable/rounded_bg_full_large_radius.xml create mode 100644 packages/SystemUI/res/layout/people_space_activity_list_divider.xml create mode 100644 packages/SystemUI/res/layout/people_space_activity_no_conversations.xml diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index 4135bbe3e86d8..9f6ef962330e6 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml @@ -583,7 +583,7 @@ android:label="@string/people_tile_title" android:enabled="true" android:exported="true" - android:theme="@android:style/Theme.Material.NoActionBar"> + android:theme="@style/Theme.PeopleTileConfigActivity"> diff --git a/packages/SystemUI/res/drawable/people_space_activity_card.xml b/packages/SystemUI/res/drawable/people_space_activity_card.xml index 81162d208b282..338bff8e315a2 100644 --- a/packages/SystemUI/res/drawable/people_space_activity_card.xml +++ b/packages/SystemUI/res/drawable/people_space_activity_card.xml @@ -14,6 +14,5 @@ ~ limitations under the License. --> - - + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/rounded_bg_full_large_radius.xml b/packages/SystemUI/res/drawable/rounded_bg_full_large_radius.xml new file mode 100644 index 0000000000000..aa940bde7e0da --- /dev/null +++ b/packages/SystemUI/res/drawable/rounded_bg_full_large_radius.xml @@ -0,0 +1,20 @@ + + + + + + diff --git a/packages/SystemUI/res/layout/people_space_activity.xml b/packages/SystemUI/res/layout/people_space_activity.xml index 1784cae816ce2..fa199439ec691 100644 --- a/packages/SystemUI/res/layout/people_space_activity.xml +++ b/packages/SystemUI/res/layout/people_space_activity.xml @@ -13,42 +13,101 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="8dp"> + - + android:layout_gravity="center_horizontal" + android:textAppearance="@*android:style/TextAppearance.DeviceDefault.ListItem" + android:textColor="?android:attr/textColorPrimary" + android:textSize="16sp" + android:padding="24dp" /> - + - + android:layout_marginTop="16dp" + android:orientation="vertical"> - - \ No newline at end of file + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/people_space_activity_list_divider.xml b/packages/SystemUI/res/layout/people_space_activity_list_divider.xml new file mode 100644 index 0000000000000..3b9fb3be38147 --- /dev/null +++ b/packages/SystemUI/res/layout/people_space_activity_list_divider.xml @@ -0,0 +1,21 @@ + + + diff --git a/packages/SystemUI/res/layout/people_space_activity_no_conversations.xml b/packages/SystemUI/res/layout/people_space_activity_no_conversations.xml new file mode 100644 index 0000000000000..232cd72361138 --- /dev/null +++ b/packages/SystemUI/res/layout/people_space_activity_no_conversations.xml @@ -0,0 +1,78 @@ + + + + + + +