From da80a9a4e68a1258f9dafbd64a78ec9591a749fd Mon Sep 17 00:00:00 2001 From: Silin Huang Date: Fri, 9 Apr 2021 00:41:19 -0700 Subject: Wallet card carousel screen UI polish. 1. Adjust header icon size, 50dp -> 56dp, and increase the top margin 2. Update header icon color for locked state 3. Show both "show all" (app button) and "unlock to pay" (action button) in locked screen 4. Update the colors of the buttons Test: manually test on device Bug: b/184905963 Change-Id: I53d6cab7fb0adee412d89408481fcf8926e1a29f --- .../res/drawable/circle_wallet_primary_50dp.xml | 23 ------- .../res/drawable/circle_wallet_primary_56dp.xml | 23 +++++++ .../res/drawable/circle_wallet_secondary_56dp.xml | 23 +++++++ .../res/drawable/wallet_action_button_bg.xml | 27 ++++++++ .../SystemUI/res/drawable/wallet_app_button_bg.xml | 25 ++++++++ packages/SystemUI/res/drawable/wallet_button.xml | 27 -------- packages/SystemUI/res/layout/wallet_fullscreen.xml | 33 +++++++--- packages/SystemUI/res/values/dimens.xml | 2 + packages/SystemUI/res/values/strings.xml | 8 +-- .../android/systemui/wallet/ui/WalletActivity.java | 20 +++--- .../com/android/systemui/wallet/ui/WalletView.java | 72 ++++++++++++++++------ 11 files changed, 189 insertions(+), 94 deletions(-) delete mode 100644 packages/SystemUI/res/drawable/circle_wallet_primary_50dp.xml create mode 100644 packages/SystemUI/res/drawable/circle_wallet_primary_56dp.xml create mode 100644 packages/SystemUI/res/drawable/circle_wallet_secondary_56dp.xml create mode 100644 packages/SystemUI/res/drawable/wallet_action_button_bg.xml create mode 100644 packages/SystemUI/res/drawable/wallet_app_button_bg.xml delete mode 100644 packages/SystemUI/res/drawable/wallet_button.xml diff --git a/packages/SystemUI/res/drawable/circle_wallet_primary_50dp.xml b/packages/SystemUI/res/drawable/circle_wallet_primary_50dp.xml deleted file mode 100644 index 41d88b4c4ca8..000000000000 --- a/packages/SystemUI/res/drawable/circle_wallet_primary_50dp.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/packages/SystemUI/res/drawable/circle_wallet_primary_56dp.xml b/packages/SystemUI/res/drawable/circle_wallet_primary_56dp.xml new file mode 100644 index 000000000000..3d4c23315e4b --- /dev/null +++ b/packages/SystemUI/res/drawable/circle_wallet_primary_56dp.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/packages/SystemUI/res/drawable/circle_wallet_secondary_56dp.xml b/packages/SystemUI/res/drawable/circle_wallet_secondary_56dp.xml new file mode 100644 index 000000000000..1634e2db3322 --- /dev/null +++ b/packages/SystemUI/res/drawable/circle_wallet_secondary_56dp.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/packages/SystemUI/res/drawable/wallet_action_button_bg.xml b/packages/SystemUI/res/drawable/wallet_action_button_bg.xml new file mode 100644 index 000000000000..bf7625fa956f --- /dev/null +++ b/packages/SystemUI/res/drawable/wallet_action_button_bg.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + diff --git a/packages/SystemUI/res/drawable/wallet_app_button_bg.xml b/packages/SystemUI/res/drawable/wallet_app_button_bg.xml new file mode 100644 index 000000000000..1136b9d208af --- /dev/null +++ b/packages/SystemUI/res/drawable/wallet_app_button_bg.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + diff --git a/packages/SystemUI/res/drawable/wallet_button.xml b/packages/SystemUI/res/drawable/wallet_button.xml deleted file mode 100644 index bf7625fa956f..000000000000 --- a/packages/SystemUI/res/drawable/wallet_button.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/packages/SystemUI/res/layout/wallet_fullscreen.xml b/packages/SystemUI/res/layout/wallet_fullscreen.xml index dc678481ea6e..b47c2f2e1821 100644 --- a/packages/SystemUI/res/layout/wallet_fullscreen.xml +++ b/packages/SystemUI/res/layout/wallet_fullscreen.xml @@ -23,7 +23,7 @@ android:id="@+id/card_carousel_container" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="36dp" + android:layout_marginTop="48dp" android:orientation="vertical"> +