From da80a9a4e68a1258f9dafbd64a78ec9591a749fd Mon Sep 17 00:00:00 2001 From: Silin Huang Date: Fri, 9 Apr 2021 00:41:19 -0700 Subject: [PATCH] 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 --- ...0dp.xml => circle_wallet_primary_56dp.xml} | 4 +- .../drawable/circle_wallet_secondary_56dp.xml | 23 ++++++ ...button.xml => wallet_action_button_bg.xml} | 0 .../res/drawable/wallet_app_button_bg.xml | 25 +++++++ .../SystemUI/res/layout/wallet_fullscreen.xml | 33 ++++++--- packages/SystemUI/res/values/dimens.xml | 2 + packages/SystemUI/res/values/strings.xml | 8 +-- .../systemui/wallet/ui/WalletActivity.java | 20 +++--- .../systemui/wallet/ui/WalletView.java | 72 ++++++++++++++----- 9 files changed, 141 insertions(+), 46 deletions(-) rename packages/SystemUI/res/drawable/{circle_wallet_primary_50dp.xml => circle_wallet_primary_56dp.xml} (93%) create mode 100644 packages/SystemUI/res/drawable/circle_wallet_secondary_56dp.xml rename packages/SystemUI/res/drawable/{wallet_button.xml => wallet_action_button_bg.xml} (100%) create mode 100644 packages/SystemUI/res/drawable/wallet_app_button_bg.xml diff --git a/packages/SystemUI/res/drawable/circle_wallet_primary_50dp.xml b/packages/SystemUI/res/drawable/circle_wallet_primary_56dp.xml similarity index 93% rename from packages/SystemUI/res/drawable/circle_wallet_primary_50dp.xml rename to packages/SystemUI/res/drawable/circle_wallet_primary_56dp.xml index 41d88b4c4ca84..3d4c23315e4b1 100644 --- a/packages/SystemUI/res/drawable/circle_wallet_primary_50dp.xml +++ b/packages/SystemUI/res/drawable/circle_wallet_primary_56dp.xml @@ -16,8 +16,8 @@ + android:height="56dp" + android:width="56dp" /> 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 0000000000000..1634e2db33225 --- /dev/null +++ b/packages/SystemUI/res/drawable/circle_wallet_secondary_56dp.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/packages/SystemUI/res/drawable/wallet_button.xml b/packages/SystemUI/res/drawable/wallet_action_button_bg.xml similarity index 100% rename from packages/SystemUI/res/drawable/wallet_button.xml rename to packages/SystemUI/res/drawable/wallet_action_button_bg.xml 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 0000000000000..1136b9d208af1 --- /dev/null +++ b/packages/SystemUI/res/drawable/wallet_app_button_bg.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + diff --git a/packages/SystemUI/res/layout/wallet_fullscreen.xml b/packages/SystemUI/res/layout/wallet_fullscreen.xml index dc678481ea6e6..b47c2f2e1821a 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"> +