From a12b402f36c68b613ec85ffbe5ba555c97f48def Mon Sep 17 00:00:00 2001 From: Alex Johnston Date: Tue, 1 Dec 2020 20:36:38 +0000 Subject: [PATCH] Show Floating action button to request manage credentials Background * This is part of the work to support a credential management app on unmanaged devices. Changes * Show FAB for detailed/long manage credentials authentication policy. * Hide FAB for short manage credentials authentication policy. * Unexpand FAB once the user start starts scrolling. * Hide FAB once the user has scrolled to the bottom. Manual Testing * Verify FAB is shown for a detailed/long policy: https://screenshot.googleplex.com/BUb4LGz3GD6AozS * Verify FAB is hidden for a short policy * Verify FAB is hidden when user has scrolled to the bottom: https://screenshot.googleplex.com/6FQRqto3r3jzfXH * Verify FAB is unexpanded (text hidden) when the users start scrolling: https://screenshot.googleplex.com/4FfAt5MsCfrAwQK Bug: 165641221 Test: Manual Testing make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.security.RequestManageCredentialsTest Change-Id: Ied2ef726ad4dcc3f92c20249f80294f0a3071a8a --- res/drawable/ic_arrow_downward.xml | 25 +++++++++++++++++++ res/layout/request_manage_credentials.xml | 13 ++++++++++ res/values/styles.xml | 7 ++++++ .../security/RequestManageCredentials.java | 20 +++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 res/drawable/ic_arrow_downward.xml diff --git a/res/drawable/ic_arrow_downward.xml b/res/drawable/ic_arrow_downward.xml new file mode 100644 index 00000000000..0def1709ff0 --- /dev/null +++ b/res/drawable/ic_arrow_downward.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/res/layout/request_manage_credentials.xml b/res/layout/request_manage_credentials.xml index eb4c9e8fdb1..a2350ac5eea 100644 --- a/res/layout/request_manage_credentials.xml +++ b/res/layout/request_manage_credentials.xml @@ -59,4 +59,17 @@ + + diff --git a/res/values/styles.xml b/res/values/styles.xml index c447decd89c..b3828277760 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -805,6 +805,13 @@ ?android:attr/colorAccent + +