diff options
author | Martijn Coenen <maco@google.com> | 2015-04-29 07:29:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-29 07:29:32 +0000 |
commit | 01d13c043a7d9f2aef357e17f2d6a36c678006e6 (patch) | |
tree | f4c366445f02ce4514a13d5553e8b4b1a02bde6b /res | |
parent | a16257dbd5599135320f4263a2cb438b7a469084 (diff) | |
parent | fe58b534f6a1bf63dadb18dae13c59ed8a014eec (diff) | |
download | packages_apps_Settings-01d13c043a7d9f2aef357e17f2d6a36c678006e6.tar.gz packages_apps_Settings-01d13c043a7d9f2aef357e17f2d6a36c678006e6.tar.bz2 packages_apps_Settings-01d13c043a7d9f2aef357e17f2d6a36c678006e6.zip |
Merge "New Tap & Pay UX." into mnc-dev
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-mdpi/tapandpay_emptystate.png | bin | 0 -> 8462 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/tapandpay_emptystate.png | bin | 0 -> 20791 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/tapandpay_emptystate.png | bin | 0 -> 34918 bytes | |||
-rw-r--r-- | res/drawable-xxxhdpi/tapandpay_emptystate.png | bin | 0 -> 51173 bytes | |||
-rw-r--r-- | res/layout/nfc_payment.xml | 101 | ||||
-rw-r--r-- | res/layout/nfc_payment_empty.xml | 37 | ||||
-rw-r--r-- | res/layout/nfc_payment_option.xml | 40 | ||||
-rw-r--r-- | res/layout/preference_widget_settings.xml | 33 | ||||
-rw-r--r-- | res/values/strings.xml | 35 |
9 files changed, 166 insertions, 80 deletions
diff --git a/res/drawable-mdpi/tapandpay_emptystate.png b/res/drawable-mdpi/tapandpay_emptystate.png Binary files differnew file mode 100644 index 000000000..1c0eb7612 --- /dev/null +++ b/res/drawable-mdpi/tapandpay_emptystate.png diff --git a/res/drawable-xhdpi/tapandpay_emptystate.png b/res/drawable-xhdpi/tapandpay_emptystate.png Binary files differnew file mode 100644 index 000000000..f7f436ba2 --- /dev/null +++ b/res/drawable-xhdpi/tapandpay_emptystate.png diff --git a/res/drawable-xxhdpi/tapandpay_emptystate.png b/res/drawable-xxhdpi/tapandpay_emptystate.png Binary files differnew file mode 100644 index 000000000..6e600227a --- /dev/null +++ b/res/drawable-xxhdpi/tapandpay_emptystate.png diff --git a/res/drawable-xxxhdpi/tapandpay_emptystate.png b/res/drawable-xxxhdpi/tapandpay_emptystate.png Binary files differnew file mode 100644 index 000000000..de8e437b1 --- /dev/null +++ b/res/drawable-xxxhdpi/tapandpay_emptystate.png diff --git a/res/layout/nfc_payment.xml b/res/layout/nfc_payment.xml index d6f9fa44f..f56d2a450 100644 --- a/res/layout/nfc_payment.xml +++ b/res/layout/nfc_payment.xml @@ -1,45 +1,62 @@ -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center_vertical" - android:orientation="vertical" > - <ImageView - android:id="@+id/nfc_payment_tap_image" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:gravity="center" - android:visibility="gone" - android:src="@drawable/nfc_payment_empty_state"/> - <TextView - android:id="@+id/nfc_payment_empty_text" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:gravity="center" - android:textSize="24sp" - android:visibility="gone" - android:paddingTop="16dp" - android:text="@string/nfc_payment_no_apps"/> - <TextView - android:id="@+id/nfc_payment_learn_more" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:gravity="center" - android:clickable="true" - android:textSize="20sp" - android:textStyle="italic" - android:visibility="gone" - android:textColor="@android:color/holo_blue_light" - android:paddingTop="16dp" - android:text="@string/nfc_payment_learn_more"/> - </LinearLayout> - <ListView - android:id="@android:id/list" +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="5dp" /> + android:orientation="vertical"> -</FrameLayout> + <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + <ImageView + android:id="@+id/nfc_payment_tap_image" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:visibility="gone" + android:src="@drawable/tapandpay_emptystate"/> + <TextView + android:id="@+id/nfc_payment_empty_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="24sp" + android:visibility="gone" + android:paddingTop="32dp" + android:text="@string/nfc_payment_no_apps"/> + </LinearLayout> + <ListView android:id="@android:id/list" + android:drawSelectorOnTop="false" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" + android:scrollbarStyle="@integer/preference_scrollbar_style" /> +<!-- + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" + android:scrollbarStyle="@integer/preference_scrollbar_style" /> +--> + </FrameLayout> +</LinearLayout> diff --git a/res/layout/nfc_payment_empty.xml b/res/layout/nfc_payment_empty.xml new file mode 100644 index 000000000..42e2fa90a --- /dev/null +++ b/res/layout/nfc_payment_empty.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:gravity="center" + android:orientation="vertical"> + + <ImageView + android:id="@+id/nfc_payment_tap_image" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:src="@drawable/tapandpay_emptystate"/> + <TextView + android:id="@+id/nfc_payment_empty_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="?android:attr/textColorSecondary" + android:paddingTop="32dp" + android:text="@string/nfc_payment_no_apps"/> +</LinearLayout> diff --git a/res/layout/nfc_payment_option.xml b/res/layout/nfc_payment_option.xml index 76fea4fb5..90ba2792a 100644 --- a/res/layout/nfc_payment_option.xml +++ b/res/layout/nfc_payment_option.xml @@ -13,40 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:id="@+id/nfc_payment_pref" android:focusable="true" android:clickable="false" - android:gravity="center_vertical" - android:paddingTop="10dp" - android:paddingBottom="10dp" + android:orientation="horizontal" + android:paddingLeft="24dip" android:minHeight="?android:attr/listPreferredItemHeight" android:background="?android:attr/selectableItemBackground"> - <FrameLayout + <RadioButton xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/button" android:layout_width="wrap_content" - android:layout_height="match_parent" - android:gravity="center" - android:minWidth="@*android:dimen/preference_icon_minWidth" - android:orientation="horizontal"> - <ImageView - android:id="@+id/banner" - android:layout_gravity="center" - android:layout_width="wrap_content" - android:layout_height="96dp" - android:scaleType="centerInside" - android:clickable="true" - /> - </FrameLayout> - <RadioButton - android:id="@android:id/button1" + android:layout_height="fill_parent" + android:checkMark="?android:attr/listChoiceIndicatorSingle" + /> + <ImageView + android:id="@+id/banner" android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_alignParentEnd="true" - android:layout_centerVertical="true" - android:duplicateParentState="true" + android:layout_height="64dp" + android:scaleType="centerInside" android:clickable="true" - android:focusable="false" /> -</RelativeLayout> + /> +</LinearLayout> diff --git a/res/layout/preference_widget_settings.xml b/res/layout/preference_widget_settings.xml new file mode 100644 index 000000000..6d9ac2fe0 --- /dev/null +++ b/res/layout/preference_widget_settings.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingEnd="?android:attr/scrollbarSize"> + + <!-- Settings button --> + <ImageView + android:id="@+id/settings_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" + android:src="@drawable/ic_sysbar_quicksettings" + android:contentDescription="@string/settings_button" /> + +</LinearLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index cde0f2491..682786719 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5517,24 +5517,35 @@ <!-- NFC payment settings --><skip/> <string name="nfc_payment_settings_title">Tap & pay</string> - <!-- Google Wallet label. [CHAR LIMIT=40] --><skip/> - <string name="google_wallet">Google Wallet</string> + <!-- Caption for button linking to a page explaining how Tap and Pay works--> + <string name="nfc_payment_how_it_works">How it works</string> <!-- String shown when there are no NFC payment applications installed --> - <string name="nfc_payment_no_apps">Pay with just a tap</string> - <!-- String shown before a checkbox, allowing the user to indicate that he wants foreground apps - to be able to override the configured default app --> - <string name="nfc_payment_favor_foreground">Favor foreground app</string> - <!-- String shown when there are no NFC payment applications installed, clickable, pointing to - a website to learn more--> - <string name="nfc_payment_learn_more">Learn more</string> + <string name="nfc_payment_no_apps">Use Tap & pay to make in-store purchases</string> + <!-- Header text that can be clicked on to change the default payment app --> + <string name="nfc_payment_default">Payment default</string> + <!-- Summary text that is shown when no default app is set --> + <string name="nfc_payment_default_not_set">Not set</string> + <!-- String indicating the label of the default payment app and a description of its state; eg Google Wallet - MasterCard 1234 --> + <string name="nfc_payment_app_and_desc"><xliff:g id="app">%1$s</xliff:g> - <xliff:g id="description">%2$s</xliff:g></string> + <!-- Header for action to choose when the open app supports TapPay --> + <string name="nfc_payment_open_app">If open app supports Tap & pay</string> + <!-- If open app supports TapPay, use that app instead of the default --> + <string name="nfc_payment_favor_open">Use that app instead of <xliff:g id="app">%1$s</xliff:g></string> + <!-- If open app supports TapPay, use that app instead of the default (name of default app unknown) --> + <string name="nfc_payment_favor_open_default_unknown">Use that app instead</string> + <!-- If open app supports TapPay, still use the default app --> + <string name="nfc_payment_favor_default">Still use <xliff:g id="app">%1$s</xliff:g></string> + <!-- If open app supports TapPay, still use the default app (name of default app unknown) --> + <string name="nfc_payment_favor_default_default_unknown">Still use default</string> + <!-- Header for a dialog asking the user which payment app to use --> + <string name="nfc_payment_pay_with">At a Tap & pay terminal, pay with:</string> <!-- NFC More... title. [CHAR LIMIT=40] --> <string name="nfc_more_title">More...</string> - <string name="nfc_payment_menu_item_add_service">Find apps</string> <!-- Label for the dialog that is shown when the user is asked to set a preferred payment application --> <string name="nfc_payment_set_default_label">Set as your preference?</string> - <string name="nfc_payment_set_default">Always use <xliff:g id="app">%1$s</xliff:g> when you tap & pay?</string> - <string name="nfc_payment_set_default_instead_of">Always use <xliff:g id="app">%1$s</xliff:g> instead of <xliff:g id="app">%2$s</xliff:g> when you tap & pay?</string> + <string name="nfc_payment_set_default">Always use <xliff:g id="app">%1$s</xliff:g> when you Tap & pay?</string> + <string name="nfc_payment_set_default_instead_of">Always use <xliff:g id="app">%1$s</xliff:g> instead of <xliff:g id="app">%2$s</xliff:g> when you Tap & pay?</string> <!-- Restrictions settings --><skip/> <!-- Restriction settings title [CHAR LIMIT=35] --> |