Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / autofill_profile_editor.xml
blob255c198b962478be1b5c404028853ca8549b6c23
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" >
12     <LinearLayout
13         android:layout_width="match_parent"
14         android:layout_height="wrap_content"
15         android:orientation="vertical"
16         android:focusableInTouchMode="true" >
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" >
27             <!-- Editable fields for the profile -->
28             <LinearLayout
29                 android:layout_width="match_parent"
30                 android:layout_height="match_parent"
31                 android:orientation="vertical"
32                 android:layout_marginStart="@dimen/pref_autofill_field_horizontal_padding"
33                 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding"
34                 android:paddingBottom="5dp" >
35                 <TextView
36                     android:layout_width="match_parent"
37                     android:layout_height="wrap_content"
38                     android:focusable="true"
39                     android:textAppearance="@style/PreferenceFloatLabelTextAppearance"
40                     android:text="@string/autofill_profile_editor_country"
41                     android:paddingBottom="8dp" />
42                 <Spinner
43                     android:id="@+id/countries"
44                     android:layout_width="fill_parent"
45                     android:layout_height="wrap_content" />
46                 <View style="@style/PreferenceSpinnerUnderlineView" />
47             </LinearLayout>
49             <LinearLayout
50                 android:id="@+id/autofill_profile_widget_root"
51                 android:layout_width="match_parent"
52                 android:layout_height="wrap_content"
53                 android:orientation="vertical" >
54             </LinearLayout>
56             <org.chromium.chrome.browser.widget.FloatLabelLayout
57                 android:id="@+id/phone_number_label"
58                 android:layout_width="match_parent"
59                 android:layout_height="wrap_content" >
60                 <EditText
61                     android:id="@+id/phone_number_edit"
62                     android:layout_width="match_parent"
63                     android:layout_height="wrap_content"
64                     android:imeOptions="flagNoExtractUi"
65                     android:inputType="phone"
66                     android:singleLine="true"
67                     android:hint="@string/autofill_profile_editor_phone_number" />
68             </org.chromium.chrome.browser.widget.FloatLabelLayout>
70             <org.chromium.chrome.browser.widget.FloatLabelLayout
71                 android:id="@+id/email_address_label"
72                 android:layout_width="match_parent"
73                 android:layout_height="wrap_content" >
74                 <EditText
75                     android:id="@+id/email_address_edit"
76                     android:layout_width="match_parent"
77                     android:layout_height="wrap_content"
78                     android:imeOptions="flagNoExtractUi"
79                     android:inputType="textEmailAddress"
80                     android:singleLine="true"
81                     android:hint="@string/autofill_profile_editor_email_address" />
82             </org.chromium.chrome.browser.widget.FloatLabelLayout>
84         </LinearLayout>
86         <Space style="@style/ButtonBarTopSpacer" />
87         <View style="@style/ButtonBarTopDivider" />
89         <LinearLayout style="@style/ButtonBar" >
90             <Button
91                 android:id="@+id/autofill_profile_delete"
92                 style="@style/ButtonBarButton"
93                 android:text="@string/delete" />
95             <Button
96                 android:id="@+id/autofill_profile_cancel"
97                 style="@style/ButtonBarButton"
98                 android:text="@string/cancel" />
100             <Button
101                 android:id="@+id/autofill_profile_save"
102                 style="@style/ButtonBarButton"
103                 android:text="@string/save" />
104         </LinearLayout>
105     </LinearLayout>
107 </ScrollView>