Durable Storage: Refactor browser test and test the basic "deny" flow.
[chromium-blink-merge.git] / chrome / android / java / res / layout / autofill_card_unmask_prompt.xml
blob6f3d8a8a04fdd61ed6afd7ffca4f4c33686d1035
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
4      Use of this source code is governed by a BSD-style license that can be
5      found in the LICENSE file.
6 -->
8 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
9     android:layout_width="wrap_content"
10     android:layout_height="wrap_content">
12     <LinearLayout
13         android:id="@+id/instructions_container"
14         android:layout_width="match_parent"
15         android:layout_height="wrap_content"
16         android:layout_alignStart="@+id/controls_container"
17         android:layout_alignEnd="@+id/controls_container"
18         android:orientation="vertical">
20         <TextView
21             android:id="@+id/no_retry_error_message"
22             android:layout_width="match_parent"
23             android:layout_height="wrap_content"
24             android:layout_marginTop="23dp"
25             android:layout_marginBottom="2dp"
26             android:paddingStart="24dp"
27             android:paddingEnd="24dp"
28             android:paddingTop="12dp"
29             android:paddingBottom="15dp"
30             android:gravity="start"
31             android:textSize="12sp"
32             android:textColor="@color/input_underline_error_color"
33             android:background="#e0e0e0"
34             android:visibility="gone" />
36         <TextView
37             android:id="@+id/instructions"
38             android:layout_width="match_parent"
39             android:layout_height="wrap_content"
40             android:layout_marginStart="24dp"
41             android:layout_marginEnd="10dp"
42             android:layout_marginBottom="8dp"
43             android:layout_marginTop="16dp"
44             android:textSize="16sp"
45             android:textColor="@color/explanation_text_color"
46             android:lineSpacingMultiplier="1.25"
47             android:gravity="start" />
48     </LinearLayout>
50     <LinearLayout
51         android:id="@+id/controls_container"
52         android:layout_width="match_parent"
53         android:layout_height="wrap_content"
54         android:layout_below="@id/instructions_container"
55         android:orientation="vertical">
57         <LinearLayout
58             android:layout_width="wrap_content"
59             android:layout_height="wrap_content"
60             android:layout_marginStart="4dp"
61             android:orientation="horizontal">
63             <LinearLayout
64                 android:id="@+id/expiration_container"
65                 android:layout_width="wrap_content"
66                 android:layout_height="wrap_content"
67                 android:layout_marginEnd="24dp"
68                 android:orientation="horizontal"
69                 android:visibility="gone">
71               <EditText
72                   android:id="@+id/expiration_month"
73                   android:layout_width="wrap_content"
74                   android:layout_height="wrap_content"
75                   android:layout_marginStart="16dp"
76                   android:width="50sp"
77                   android:maxLength="2"
78                   android:gravity="center_horizontal"
79                   android:inputType="number"
80                   android:hint="@string/card_unmask_month_hint" />
82               <TextView
83                   android:layout_width="wrap_content"
84                   android:layout_height="wrap_content"
85                   android:text="@string/autofill_card_unmask_expiration_date_separator" />
87               <EditText
88                   android:id="@+id/expiration_year"
89                   android:layout_width="wrap_content"
90                   android:layout_height="wrap_content"
91                   android:width="50sp"
92                   android:maxLength="2"
93                   android:gravity="center_horizontal"
94                   android:inputType="number"
95                   android:hint="@string/card_unmask_year_hint" />
96             </LinearLayout>
98             <EditText
99                 android:id="@+id/card_unmask_input"
100                 android:inputType="number"
101                 android:layout_height="wrap_content"
102                 android:layout_width="wrap_content"
103                 android:layout_marginStart="16dp"
104                 android:ems="5"
105                 android:hint="@string/card_unmask_input_hint" />
107             <ImageView
108                 android:id="@+id/cvc_hint_image"
109                 android:layout_width="wrap_content"
110                 android:layout_height="wrap_content"
111                 android:layout_gravity="center_vertical"
112                 android:layout_marginStart="8dp"
113                 android:layout_marginEnd="16dp"
114                 android:contentDescription="@null" />
116             <TextView
117                 android:id="@+id/new_card_link"
118                 android:layout_width="wrap_content"
119                 android:layout_height="wrap_content"
120                 android:singleLine="true"
121                 android:textColor="@color/light_active_color"
122                 android:text="@string/autofill_card_unmask_new_card_link"
123                 android:visibility="gone" />
124         </LinearLayout>
126         <TextView
127             android:id="@+id/error_message"
128             android:layout_width="match_parent"
129             android:layout_height="wrap_content"
130             android:layout_marginStart="24dp"
131             android:layout_marginEnd="24dp"
132             android:gravity="start"
133             android:textSize="12sp"
134             android:textColor="@color/input_underline_error_color"
135             android:visibility="gone" />
137         <RelativeLayout
138             android:id="@+id/store_locally_container"
139             android:layout_width="match_parent"
140             android:layout_height="wrap_content"
141             android:layout_marginBottom="16dp"
142             android:layout_marginTop="16dp">
144             <ImageView
145                 android:id="@+id/store_locally_tooltip_icon"
146                 android:layout_width="wrap_content"
147                 android:layout_height="wrap_content"
148                 android:layout_marginEnd="12dp"
149                 android:layout_alignParentEnd="true"
150                 android:layout_centerVertical="true"
151                 android:padding="12dp"
152                 android:src="@drawable/help_outline"
153                 android:contentDescription="@string/learn_more" />
155            <CheckBox
156                 android:id="@+id/store_locally_checkbox"
157                 android:layout_width="wrap_content"
158                 android:layout_height="wrap_content"
159                 android:layout_alignParentStart="true"
160                 android:layout_toStartOf="@id/store_locally_tooltip_icon"
161                 android:layout_centerVertical="true"
162                 android:layout_marginStart="17dp"
163                 android:layout_marginEnd="10dp"
164                 android:textSize="14sp"
165                 android:textColor="@color/explanation_text_color"
166                 android:text="@string/autofill_card_unmask_prompt_storage_checkbox" />
168         </RelativeLayout>
169     </LinearLayout>
171     <LinearLayout
172         android:id="@+id/verification_overlay"
173         android:layout_width="wrap_content"
174         android:layout_height="wrap_content"
175         android:layout_alignTop="@+id/controls_container"
176         android:layout_alignBottom="@+id/controls_container"
177         android:layout_alignStart="@+id/controls_container"
178         android:layout_alignEnd="@+id/controls_container"
179         android:orientation="vertical"
180         android:gravity="center"
181         android:visibility="gone">
183         <ProgressBar
184             android:id="@+id/verification_progress_bar"
185             android:layout_width="36dp"
186             android:layout_height="36dp"
187             android:layout_marginBottom="8dp"
188             android:visibility="gone" />
190         <ImageView
191             android:id="@+id/verification_success"
192             android:layout_width="wrap_content"
193             android:layout_height="wrap_content"
194             android:src="@drawable/verify_checkmark"
195             android:visibility="gone"
196             android:contentDescription="@null" />
198         <TextView
199             android:id="@+id/verification_message"
200             android:layout_width="wrap_content"
201             android:layout_height="wrap_content"
202             android:textColor="@color/light_active_color"
203             android:textSize="20sp" />
204     </LinearLayout>
205 </RelativeLayout>