From 352a3997e148a7e0468e4787c469fd0ca7e27789 Mon Sep 17 00:00:00 2001 From: Alex Johnston Date: Wed, 10 Nov 2021 14:29:53 +0000 Subject: [PATCH] Update work challenge to align with material next Summary: * Update title, subtitle, description and icon * Update layout for entering credentials Follow-up: * There are still some UI componenets which don't fully align with material next. A larger change will need to be made to fix this, which we will aim to do in Android T. * This includes the status bar and nav bar appearance and the password entry text field. Pattern: * Settings (WAI): https://screenshot.googleplex.com/BiQYeWSrkxL6iRW * Work Challenge (after changes): https://screenshot.googleplex.com/7ThwqMpbHu8yLWg Password/PIN: * Settings (WAI): https://screenshot.googleplex.com/9zUMGgYBvyhYdBa * Work Challenge (after changes): https://screenshot.googleplex.com/46SVNAzkWesyi8M Bug: 191948779 Test: manual testing using TestDPC Change-Id: I6cca39d447e37310c287d1a0eb0468565e9fcd37 --- .../layout/auth_credential_password_view.xml | 109 ++++++++------- .../layout/auth_credential_pattern_view.xml | 125 +++++++++--------- packages/SystemUI/res/values/styles.xml | 42 +++--- 3 files changed, 150 insertions(+), 126 deletions(-) diff --git a/packages/SystemUI/res/layout/auth_credential_password_view.xml b/packages/SystemUI/res/layout/auth_credential_password_view.xml index 1e0ce0026d8ee..46cbc253175e0 100644 --- a/packages/SystemUI/res/layout/auth_credential_password_view.xml +++ b/packages/SystemUI/res/layout/auth_credential_password_view.xml @@ -18,64 +18,71 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" - android:gravity="center_horizontal" - android:elevation="@dimen/biometric_dialog_elevation"> + android:elevation="@dimen/biometric_dialog_elevation" + android:orientation="vertical"> - - - - - + android:layout_height="match_parent"> - + - + - + - + - + - + + + + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/auth_credential_pattern_view.xml b/packages/SystemUI/res/layout/auth_credential_pattern_view.xml index 4939ea2c99ee3..470298ea0b13d 100644 --- a/packages/SystemUI/res/layout/auth_credential_pattern_view.xml +++ b/packages/SystemUI/res/layout/auth_credential_pattern_view.xml @@ -22,76 +22,81 @@ android:gravity="center_horizontal" android:elevation="@dimen/biometric_dialog_elevation"> - - - - - + android:layout_height="match_parent" + android:orientation="vertical"> - + - + - + - + - + + - - - - - + android:layout_below="@id/auth_credential_header" + android:gravity="center" + android:orientation="vertical" + android:paddingBottom="16dp" + android:paddingTop="60dp"> - + - + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 61591bd0a450f..c7cf4008d395b 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -200,9 +200,9 @@ - + + + +