Implement MoveFileLocal (with creating a snapshot).
[chromium-blink-merge.git] / chrome / android / java / res / layout / autofill_card_unmask_prompt.xml
blob068b3ef4ecab614d23bbde5cc90eef52a4725498
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/main_contents"
14         android:layout_width="wrap_content"
15         android:layout_height="wrap_content"
16         android:layout_marginBottom="16dp"
17         android:orientation="vertical">
19         <TextView
20             android:id="@+id/no_retry_error_message"
21             android:layout_width="match_parent"
22             android:layout_height="wrap_content"
23             android:layout_marginTop="23dp"
24             android:layout_marginBottom="2dp"
25             android:paddingStart="24dp"
26             android:paddingEnd="24dp"
27             android:paddingTop="12dp"
28             android:paddingBottom="15dp"
29             android:gravity="start"
30             android:textSize="12sp"
31             android:textColor="@color/input_underline_error_color"
32             android:background="#e0e0e0"
33             android:visibility="gone" />
35         <TextView
36             android:id="@+id/instructions"
37             android:layout_width="match_parent"
38             android:layout_height="wrap_content"
39             android:layout_marginStart="24dp"
40             android:layout_marginEnd="10dp"
41             android:layout_marginBottom="8dp"
42             android:layout_marginTop="16dp"
43             android:textSize="16sp"
44             android:textColor="@color/explanation_text_color"
45             android:lineSpacingMultiplier="1.25"
46             android:gravity="start" />
48         <LinearLayout
49             android:layout_width="match_parent"
50             android:layout_height="wrap_content"
51             android:layout_marginStart="4dp"
52             android:orientation="horizontal">
54             <LinearLayout
55                 android:id="@+id/expiration_container"
56                 android:layout_width="wrap_content"
57                 android:layout_height="wrap_content"
58                 android:layout_marginEnd="24dp"
59                 android:orientation="horizontal"
60                 android:visibility="gone">
62               <EditText
63                   android:id="@+id/expiration_month"
64                   android:layout_width="wrap_content"
65                   android:layout_height="wrap_content"
66                   android:layout_marginStart="16dp"
67                   android:width="50sp"
68                   android:maxLength="2"
69                   android:gravity="center_horizontal"
70                   android:inputType="number"
71                   android:hint="@string/card_unmask_month_hint" />
73               <TextView
74                   android:layout_width="wrap_content"
75                   android:layout_height="wrap_content"
76                   android:text="@string/autofill_card_unmask_expiration_date_separator" />
78               <EditText
79                   android:id="@+id/expiration_year"
80                   android:layout_width="wrap_content"
81                   android:layout_height="wrap_content"
82                   android:width="50sp"
83                   android:maxLength="2"
84                   android:gravity="center_horizontal"
85                   android:inputType="number"
86                   android:hint="@string/card_unmask_year_hint" />
87             </LinearLayout>
89             <EditText
90                 android:id="@+id/card_unmask_input"
91                 android:inputType="number"
92                 android:layout_height="wrap_content"
93                 android:layout_width="wrap_content"
94                 android:layout_marginStart="16dp"
95                 android:ems="5"
96                 android:hint="@string/card_unmask_input_hint" />
98             <ImageView
99                 android:id="@+id/cvc_hint_image"
100                 android:layout_width="wrap_content"
101                 android:layout_height="wrap_content"
102                 android:layout_gravity="center_vertical"
103                 android:layout_marginStart="8dp"
104                 android:layout_marginEnd="16dp"
105                 android:contentDescription="@null" />
106         </LinearLayout>
108         <TextView
109             android:id="@+id/error_message"
110             android:layout_width="match_parent"
111             android:layout_height="wrap_content"
112             android:layout_marginStart="24dp"
113             android:layout_marginEnd="24dp"
114             android:gravity="start"
115             android:textSize="12sp"
116             android:textColor="@color/input_underline_error_color"
117             android:visibility="gone" />
119         <RelativeLayout
120             android:layout_width="match_parent"
121             android:layout_height="wrap_content"
122             android:layout_marginTop="16dp">
124             <!-- TODO(estade): Content description? -->
125             <ImageView
126                 android:id="@+id/store_locally_tooltip_icon"
127                 android:layout_width="wrap_content"
128                 android:layout_height="wrap_content"
129                 android:layout_marginEnd="12dp"
130                 android:layout_alignParentEnd="true"
131                 android:layout_centerVertical="true"
132                 android:padding="12dp"
133                 android:src="@drawable/help_outline"
134                 android:contentDescription="@null" />
136            <CheckBox
137                 android:id="@+id/store_locally_checkbox"
138                 android:layout_width="wrap_content"
139                 android:layout_height="wrap_content"
140                 android:layout_alignParentStart="true"
141                 android:layout_toStartOf="@id/store_locally_tooltip_icon"
142                 android:layout_centerVertical="true"
143                 android:layout_marginStart="17dp"
144                 android:layout_marginEnd="10dp"
145                 android:paddingStart="7dp"
146                 android:textSize="14sp"
147                 android:textColor="@color/explanation_text_color"
148                 android:text="@string/autofill_card_unmask_prompt_storage_checkbox" />
150         </RelativeLayout>
151     </LinearLayout>
153     <LinearLayout
154         android:id="@+id/verification_overlay"
155         android:layout_width="wrap_content"
156         android:layout_height="wrap_content"
157         android:layout_alignTop="@+id/main_contents"
158         android:layout_alignBottom="@+id/main_contents"
159         android:layout_alignStart="@+id/main_contents"
160         android:layout_alignEnd="@+id/main_contents"
161         android:orientation="vertical"
162         android:gravity="center"
163         android:visibility="gone">
165         <ProgressBar
166             android:id="@+id/verification_progress_bar"
167             android:layout_width="36dp"
168             android:layout_height="36dp"
169             android:layout_marginBottom="8dp"
170             android:layout_marginTop="30dp"
171             android:visibility="gone" />
173         <!--  TODO(estade): add a real content description for this image. -->
174         <ImageView
175             android:id="@+id/verification_success"
176             android:layout_width="wrap_content"
177             android:layout_height="wrap_content"
178             android:src="@drawable/verify_checkmark"
179             android:visibility="gone"
180             android:contentDescription="@null" />
182         <TextView
183             android:id="@+id/verification_message"
184             android:layout_width="wrap_content"
185             android:layout_height="wrap_content"
186             android:textColor="?attr/colorAccent"
187             android:textSize="20sp" />
188     </LinearLayout>
189 </RelativeLayout>