OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
5 | 5 |
6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | 6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
7 xmlns:app="http://schemas.android.com/apk/res-auto" | |
7 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
8 android:layout_height="match_parent" | 9 android:layout_height="match_parent" |
9 android:fillViewport="true" > | 10 android:fillViewport="true" > |
10 | 11 |
11 <LinearLayout | 12 <LinearLayout |
12 android:layout_width="match_parent" | 13 android:layout_width="match_parent" |
13 android:layout_height="wrap_content" | 14 android:layout_height="wrap_content" |
14 android:orientation="vertical" | 15 android:orientation="vertical" |
15 android:focusableInTouchMode="true" > | 16 android:focusableInTouchMode="true" > |
16 | 17 |
17 <LinearLayout | 18 <LinearLayout |
18 style="@style/PreferenceScreenLayout" | 19 style="@style/PreferenceScreenLayout" |
19 android:layout_width="match_parent" | 20 android:layout_width="match_parent" |
20 android:layout_height="wrap_content" | 21 android:layout_height="wrap_content" |
21 android:orientation="vertical"> | 22 android:orientation="vertical"> |
22 | 23 |
23 <!-- Editable fields for the profile --> | 24 <!-- Editable fields for the profile --> |
25 <TextView | |
26 android:layout_width="match_parent" | |
27 android:layout_height="wrap_content" | |
28 android:textAppearance="@style/PreferenceFloatLabelTextAppearanc e" | |
29 android:text="@string/autofill_profile_editor_country" /> | |
30 <Spinner | |
31 android:id="@+id/countries" | |
32 android:layout_width="fill_parent" | |
33 android:layout_height="wrap_content" | |
34 android:contentDescription="@string/autofill_profile_editor_coun try" /> | |
24 | 35 |
25 <LinearLayout | 36 <LinearLayout |
26 android:id="@+id/autofill_profile_widget_root" | 37 android:id="@+id/autofill_profile_widget_root" |
27 android:layout_width="match_parent" | 38 android:layout_width="match_parent" |
28 android:layout_height="wrap_content" | 39 android:layout_height="wrap_content" |
29 android:orientation="vertical" > | 40 android:orientation="vertical" > |
30 </LinearLayout> | 41 </LinearLayout> |
31 | 42 |
32 <TextView | 43 <org.chromium.chrome.browser.widget.FloatLabelLayout |
33 style="@style/BoldTextFieldLabel" | 44 android:id="@+id/autofill_profile_editor_phone_number_label" |
newt (away)
2015/01/28 20:20:18
Shorter IDs are OK too, e.g. autofill_phone_number
Theresa
2015/01/29 05:22:13
Done.
| |
34 android:text="@string/autofill_profile_editor_phone_number" /> | 45 android:layout_width="match_parent" |
46 android:layout_height="wrap_content" > | |
47 <EditText | |
newt (away)
2015/01/28 20:20:18
So, do you need to set the content description her
Theresa
2015/01/29 05:22:13
Yes, done.
| |
48 android:id="@+id/autofill_profile_editor_phone_number_edit" | |
49 android:layout_width="match_parent" | |
50 android:layout_height="wrap_content" | |
51 android:imeOptions="flagNoExtractUi" | |
52 android:inputType="phone" | |
53 android:singleLine="true" | |
54 android:hint="@string/autofill_profile_editor_phone_number" /> | |
55 </org.chromium.chrome.browser.widget.FloatLabelLayout> | |
35 | 56 |
36 <EditText | 57 <org.chromium.chrome.browser.widget.FloatLabelLayout |
37 android:id="@+id/autofill_profile_editor_phone_number_edit" | 58 android:id="@+id/autofill_profile_editor_email_address_label" |
38 android:layout_width="match_parent" | 59 android:layout_width="match_parent" |
39 android:layout_height="wrap_content" | 60 android:layout_height="wrap_content" > |
40 android:imeOptions="flagNoExtractUi" | 61 <EditText |
41 android:inputType="phone" | 62 android:id="@+id/autofill_profile_editor_email_address_edit" |
42 android:singleLine="true" /> | 63 android:layout_width="match_parent" |
43 | 64 android:layout_height="wrap_content" |
44 <TextView | 65 android:imeOptions="flagNoExtractUi" |
45 style="@style/BoldTextFieldLabel" | 66 android:inputType="textEmailAddress" |
46 android:text="@string/autofill_profile_editor_email_address" /> | 67 android:singleLine="true" |
47 | 68 android:hint="@string/autofill_profile_editor_email_address" /> |
48 <EditText | 69 </org.chromium.chrome.browser.widget.FloatLabelLayout> |
49 android:id="@+id/autofill_profile_editor_email_address_edit" | |
50 android:layout_width="match_parent" | |
51 android:layout_height="wrap_content" | |
52 android:imeOptions="flagNoExtractUi" | |
53 android:inputType="textEmailAddress" | |
54 android:singleLine="true" /> | |
55 | 70 |
56 </LinearLayout> | 71 </LinearLayout> |
57 | 72 |
58 <View style="@style/ButtonBarTopSpacer" /> | 73 <View style="@style/ButtonBarTopSpacer" /> |
59 <View style="@style/ButtonBarTopDivider" /> | 74 <View style="@style/ButtonBarTopDivider" /> |
60 | 75 |
61 <LinearLayout style="@style/ButtonBar" > | 76 <LinearLayout style="@style/ButtonBar" > |
62 <Button | 77 <Button |
63 android:id="@+id/autofill_profile_delete" | 78 android:id="@+id/autofill_profile_delete" |
64 style="@style/ButtonBarButton" | 79 style="@style/ButtonBarButton" |
65 android:text="@string/delete" /> | 80 android:text="@string/delete" /> |
66 | 81 |
67 <Button | 82 <Button |
68 android:id="@+id/autofill_profile_cancel" | 83 android:id="@+id/autofill_profile_cancel" |
69 style="@style/ButtonBarButton" | 84 style="@style/ButtonBarButton" |
70 android:text="@string/cancel" /> | 85 android:text="@string/cancel" /> |
71 | 86 |
72 <Button | 87 <Button |
73 android:id="@+id/autofill_profile_save" | 88 android:id="@+id/autofill_profile_save" |
74 style="@style/ButtonBarButton" | 89 style="@style/ButtonBarButton" |
75 android:text="@string/save" /> | 90 android:text="@string/save" /> |
76 </LinearLayout> | 91 </LinearLayout> |
77 </LinearLayout> | 92 </LinearLayout> |
78 | 93 |
79 </ScrollView> | 94 </ScrollView> |
OLD | NEW |