summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2015-04-29 07:29:30 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-29 07:29:32 +0000
commit01d13c043a7d9f2aef357e17f2d6a36c678006e6 (patch)
treef4c366445f02ce4514a13d5553e8b4b1a02bde6b /res/layout
parenta16257dbd5599135320f4263a2cb438b7a469084 (diff)
parentfe58b534f6a1bf63dadb18dae13c59ed8a014eec (diff)
downloadpackages_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/layout')
-rw-r--r--res/layout/nfc_payment.xml101
-rw-r--r--res/layout/nfc_payment_empty.xml37
-rw-r--r--res/layout/nfc_payment_option.xml40
-rw-r--r--res/layout/preference_widget_settings.xml33
4 files changed, 143 insertions, 68 deletions
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>