Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / autofill_credit_card_editor.xml
blob4a57db0a7990258cba8ea2cc4b0a63e5fc4d09ac
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3      Use of this source code is governed by a BSD-style license that can be
4      found in the LICENSE file. -->
6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
7     xmlns:app="http://schemas.android.com/apk/res-auto"
8     android:layout_width="match_parent"
9     android:layout_height="match_parent"
10     android:fillViewport="true"
11     android:scrollbarStyle="outsideOverlay" >
13     <LinearLayout
14         android:layout_width="match_parent"
15         android:layout_height="wrap_content"
16         android:orientation="vertical" >
18         <!-- EditText views in FloatLabelLayout require both hint and contentDescription to be set
19              to work correctly for accessibility because FloatLabelLayout sometimes clear hint. -->
20         <!--suppress ContentDescription -->
21         <LinearLayout
22             style="@style/PreferenceScreenLayout"
23             android:layout_width="match_parent"
24             android:layout_height="wrap_content"
25             android:orientation="vertical"
26             android:focusableInTouchMode="true"
27             android:paddingTop="6dp" >
29             <org.chromium.chrome.browser.widget.FloatLabelLayout
30                 android:id="@+id/credit_card_name_label"
31                 android:layout_width="match_parent"
32                 android:layout_height="wrap_content" >
33                 <EditText
34                     android:id="@+id/credit_card_name_edit"
35                     android:layout_width="match_parent"
36                     android:layout_height="wrap_content"
37                     android:imeOptions="flagNoExtractUi"
38                     android:inputType="textCapWords"
39                     android:hint="@string/autofill_credit_card_editor_name" />
40             </org.chromium.chrome.browser.widget.FloatLabelLayout>
42             <org.chromium.chrome.browser.widget.FloatLabelLayout
43                 android:id="@+id/credit_card_number_label"
44                 android:layout_width="match_parent"
45                 android:layout_height="wrap_content" >
46                 <EditText
47                     android:id="@+id/credit_card_number_edit"
48                     android:layout_width="match_parent"
49                     android:layout_height="wrap_content"
50                     android:imeOptions="flagNoExtractUi"
51                     android:inputType="phone"
52                     android:digits="0123456789- "
53                     android:hint="@string/autofill_credit_card_editor_number" />
54             </org.chromium.chrome.browser.widget.FloatLabelLayout>
56             <TextView
57                 android:layout_width="match_parent"
58                 android:layout_height="wrap_content"
59                 android:focusable="true"
60                 android:paddingTop="@dimen/pref_autofill_field_top_padding"
61                 android:textAppearance="@style/PreferenceFloatLabelTextAppearance"
62                 android:text="@string/autofill_credit_card_editor_expiration_date"
63                 android:paddingStart="@dimen/pref_autofill_field_horizontal_padding"
64                 android:paddingEnd="@dimen/pref_autofill_field_horizontal_padding" />
66             <LinearLayout
67                 android:layout_width="match_parent"
68                 android:layout_height="wrap_content"
69                 android:orientation="horizontal"
70                 android:paddingTop="8dp"
71                 android:baselineAligned="false"
72                 android:layout_marginStart="@dimen/pref_autofill_field_horizontal_padding"
73                 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" >
75                 <LinearLayout
76                     android:layout_width="0dp"
77                     android:layout_height="wrap_content"
78                     android:layout_weight="1"
79                     android:orientation="vertical"
80                     android:paddingEnd="10dp" >
81                     <Spinner
82                         android:id="@+id/autofill_credit_card_editor_month_spinner"
83                         android:layout_width="match_parent"
84                         android:layout_height="wrap_content" />
85                     <View style="@style/PreferenceSpinnerUnderlineView" />
86                 </LinearLayout>
88                <LinearLayout
89                     android:layout_width="0dp"
90                     android:layout_height="wrap_content"
91                     android:layout_weight="1"
92                     android:orientation="vertical" >
93                       <Spinner
94                           android:id="@+id/autofill_credit_card_editor_year_spinner"
95                           android:layout_width="match_parent"
96                           android:layout_height="wrap_content" />
97                       <View style="@style/PreferenceSpinnerUnderlineView"  />
98                 </LinearLayout>
99             </LinearLayout>
100         </LinearLayout>
102         <Space style="@style/ButtonBarTopSpacer" />
103         <View style="@style/ButtonBarTopDivider" />
105         <LinearLayout style="@style/ButtonBar" >
106             <Button
107                 android:id="@+id/autofill_credit_card_delete"
108                 style="@style/ButtonBarButton"
109                 android:text="@string/delete" />
111             <Button
112                 android:id="@+id/autofill_credit_card_cancel"
113                 style="@style/ButtonBarButton"
114                 android:text="@string/cancel" />
116             <Button
117                 android:id="@+id/autofill_credit_card_save"
118                 style="@style/ButtonBarButton"
119                 android:text="@string/save" />
120         </LinearLayout>
121     </LinearLayout>
123 </ScrollView>