From d8bf249a5dea77b5e5d2ca0ab421a3e58b947c7d Mon Sep 17 00:00:00 2001 From: Aarthi Balachander Date: Fri, 30 Mar 2018 11:15:59 -0700 Subject: [PATCH] UI modifications for user picker Test: tested on Mojave bug: 75023449 Change-Id: Ia991ca9ed9424d0008ca2328f28c0900e8d5653a --- .../res/layout/car_fullscreen_user_pod.xml | 32 +- .../car_fullscreen_user_pod_container.xml | 25 -- .../layout/car_fullscreen_user_switcher.xml | 45 ++- packages/SystemUI/res/layout/car_qs_panel.xml | 34 +- packages/SystemUI/res/values/dimens_car.xml | 16 +- packages/SystemUI/res/values/integers_car.xml | 2 + packages/SystemUI/res/values/strings_car.xml | 8 +- .../android/systemui/qs/car/CarQSFooter.java | 1 - .../systemui/qs/car/CarQSFragment.java | 72 +--- .../systemui/statusbar/car/CarStatusBar.java | 3 +- .../statusbar/car/FullscreenUserSwitcher.java | 42 +- .../statusbar/car/UserGridRecyclerView.java | 360 +++++++++++++++++ .../systemui/statusbar/car/UserGridView.java | 364 ------------------ 13 files changed, 454 insertions(+), 550 deletions(-) delete mode 100644 packages/SystemUI/res/layout/car_fullscreen_user_pod_container.xml create mode 100644 packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridRecyclerView.java delete mode 100644 packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridView.java diff --git a/packages/SystemUI/res/layout/car_fullscreen_user_pod.xml b/packages/SystemUI/res/layout/car_fullscreen_user_pod.xml index 0ee40d7ae47b0..67f68d32da873 100644 --- a/packages/SystemUI/res/layout/car_fullscreen_user_pod.xml +++ b/packages/SystemUI/res/layout/car_fullscreen_user_pod.xml @@ -15,40 +15,32 @@ limitations under the License. --> + + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:gravity="fill_horizontal" + android:layout_marginTop="@dimen/car_padding_5" + android:layout_marginStart="@dimen/car_padding_4"> + /> + android:gravity="center" + android:layout_below="@id/user_avatar"/> - diff --git a/packages/SystemUI/res/layout/car_fullscreen_user_pod_container.xml b/packages/SystemUI/res/layout/car_fullscreen_user_pod_container.xml deleted file mode 100644 index d666a203298f3..0000000000000 --- a/packages/SystemUI/res/layout/car_fullscreen_user_pod_container.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - diff --git a/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml b/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml index bfabe520ef4dc..22452b74b61fb 100644 --- a/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml +++ b/packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml @@ -39,27 +39,34 @@ android:theme="@android:style/Theme" android:layout_alignParentTop="true"/> - + android:layout_height="match_parent" + android:layout_marginStart="@dimen/car_margin" + android:layout_marginEnd="@dimen/car_margin"> - + + + + + + + -