summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-05-08 03:09:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-05-08 03:09:26 +0000
commitb1fa7aa4f13a2caa3d9d456f97b73ab2fc5d71dd (patch)
treeda514709024b4590369bba7966f198884f0b85d1 /res
parent49f78134b7b54efd5a9d9b595c7527d5bbde0be4 (diff)
parent3cb50f14a8b984db28d64a4c754bf6f43452bdf2 (diff)
downloadQuickAccessWallet-b1fa7aa4f13a2caa3d9d456f97b73ab2fc5d71dd.tar.gz
Merge "Overflow menu and zero state UI updates" into rvc-dev
Diffstat (limited to 'res')
-rw-r--r--res/drawable/wallet_empty_state_bg.xml18
-rw-r--r--res/drawable/wallet_overflow_popup_bg.xml35
-rw-r--r--res/layout/empty_state_view.xml12
-rw-r--r--res/layout/wallet_more_item.xml2
-rw-r--r--res/layout/wallet_view.xml5
-rw-r--r--res/values/dimens.xml3
-rw-r--r--res/values/strings.xml4
7 files changed, 63 insertions, 16 deletions
diff --git a/res/drawable/wallet_empty_state_bg.xml b/res/drawable/wallet_empty_state_bg.xml
index 170253c..94722d9 100644
--- a/res/drawable/wallet_empty_state_bg.xml
+++ b/res/drawable/wallet_empty_state_bg.xml
@@ -14,12 +14,20 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
-<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="?android:attr/colorControlHighlight">
+ <item android:id="@android:id/mask">
+ <shape android:shape="rectangle">
+ <solid android:color="#000000" />
+ <corners android:radius="@dimen/wallet_empty_state_corner_radius" />
+ </shape>
+ </item>
<item>
<shape>
- <stroke android:width="1dp" android:color="#66FFFFFF"/>
- <corners android:radius="20dp"/>
+ <stroke
+ android:width="1dp"
+ android:color="#4DFFFFFF" />
+ <corners android:radius="@dimen/wallet_empty_state_corner_radius" />
</shape>
</item>
- <item android:drawable="?android:selectableItemBackground"/>
-</layer-list>
+</ripple> \ No newline at end of file
diff --git a/res/drawable/wallet_overflow_popup_bg.xml b/res/drawable/wallet_overflow_popup_bg.xml
new file mode 100644
index 0000000..6c145d2
--- /dev/null
+++ b/res/drawable/wallet_overflow_popup_bg.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ Copyright (C) 2020 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <inset xmlns:android="http://schemas.android.com/apk/res/android"
+ android:insetBottom="12dp"
+ android:insetTop="12dp">
+ <shape android:shape="rectangle" />
+ </inset>
+ </item>
+
+ <item
+ android:top="-12dp"
+ android:bottom="-12dp">
+ <shape android:shape="rectangle">
+ <corners android:radius="8dp" />
+ <solid android:color="@color/wallet_grey_800" />
+ </shape>
+ </item>
+
+</layer-list>
+
diff --git a/res/layout/empty_state_view.xml b/res/layout/empty_state_view.xml
index 3bf0000..6563d57 100644
--- a/res/layout/empty_state_view.xml
+++ b/res/layout/empty_state_view.xml
@@ -22,12 +22,12 @@
android:id="@+id/empty_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingTop="40dp"
- android:paddingBottom="40dp"
- android:layout_marginHorizontal="12dp"
- android:layout_marginTop="44dp"
+ android:layout_marginHorizontal="16dp"
+ android:layout_marginTop="32dp"
android:background="@drawable/wallet_empty_state_bg"
+ android:orientation="vertical"
+ android:paddingVertical="52dp"
+ android:theme="@style/Wallet.Theme"
android:visibility="gone">
<ImageView
@@ -39,7 +39,7 @@
android:scaleType="fitCenter"/>
<TextView
- style="@style/Wallet.TextAppearance.Title"
+ style="@style/Wallet.TextAppearance"
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/res/layout/wallet_more_item.xml b/res/layout/wallet_more_item.xml
index 3298fcf..24c1c7a 100644
--- a/res/layout/wallet_more_item.xml
+++ b/res/layout/wallet_more_item.xml
@@ -20,5 +20,5 @@
android:layout_height="wrap_content"
android:paddingHorizontal="16dp"
android:paddingVertical="18dp"
- android:layout_gravity="start"/>
+ android:gravity="start"/>
diff --git a/res/layout/wallet_view.xml b/res/layout/wallet_view.xml
index a49399e..b855d89 100644
--- a/res/layout/wallet_view.xml
+++ b/res/layout/wallet_view.xml
@@ -24,6 +24,7 @@
android:id="@+id/card_carousel_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginTop="28dp"
android:orientation="vertical"
android:clipChildren="false"
android:visibility="gone">
@@ -47,10 +48,10 @@
android:src="@drawable/ic_more_vert"
android:layout_gravity="center|end"
android:layout_width="@dimen/wallet_menu_btn_size"
- android:layout_height="48dp"
+ android:layout_height="@dimen/wallet_menu_btn_size"
android:padding="12dp"
android:tint="@color/wallet_more_vert"
- android:contentDescription="@string/global_actions_settings_description"
+ android:contentDescription="@string/accessibility_menu"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:theme="@style/Wallet.Theme" />
</FrameLayout>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index de0e4b9..4df223b 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -3,8 +3,11 @@
<dimen name="icon_size">18sp</dimen>
<dimen name="card_margin">16dp</dimen>
<dimen name="min_wallet_empty_height">208dp</dimen>
+ <dimen name="wallet_empty_state_corner_radius">12dp</dimen>
<dimen name="wallet_more_text_size">16sp</dimen>
<dimen name="wallet_more_padding">32dp</dimen>
<dimen name="wallet_menu_btn_size">48dp</dimen>
+ <dimen name="wallet_menu_vertical_offset">-36dp</dimen>
+ <dimen name="wallet_menu_horizontal_offset">12dp</dimen>
<dimen name="wallet_menu_padding_vertical">48dp</dimen>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d15a26d..d44c2c0 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -2,8 +2,8 @@
<resources>
<!-- Message shown when launching Wallet before device is unlocked for the first time after a reboot [CHAR LIMIT=NONE] -->
<string name="error_user_locked">Unlock your phone to load your payment info</string>
- <!-- Content description for settings button. [CHAR LIMIT=NONE] -->
- <string name="global_actions_settings_description">Tap to view settings for cards &amp; passes in the power menu</string>
+ <!-- Content description of the menu button for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_menu">Menu</string>
<!-- Message shown when an unknown failure occurred when fetching cards. [CHAR LIMIT=NONE] -->
<string name="error_generic">There was a problem getting your cards, please try again later</string>
<!-- Overflow menu option directing user to System Settings [CHAR LIMIT=15]-->