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 <!-- EditText views in FloatLabelLayout require both hint and contentDescription to be set | 6 <!-- EditText views in FloatLabelLayout require both hint and contentDescription to be set |
Ian Wen
2016/07/01 19:19:03
After we stop using FloatLabelLayout, is it still
gone
2016/07/01 23:00:49
TextInputLayout doesn't seem to clear hints; remov
| |
7 to work correctly for accessibility because FloatLabelLayout sometimes clea r hint. --> | 7 to work correctly for accessibility because FloatLabelLayout sometimes clea r hint. --> |
8 <!--suppress ContentDescription --> | 8 <!--suppress ContentDescription --> |
9 <merge | 9 <merge |
10 xmlns:android="http://schemas.android.com/apk/res/android" | 10 xmlns:android="http://schemas.android.com/apk/res/android" |
11 xmlns:app="http://schemas.android.com/apk/res-auto" > | 11 xmlns:app="http://schemas.android.com/apk/res-auto" > |
12 | 12 |
13 <!-- Editable fields for the profile --> | 13 <!-- Country --> |
14 <LinearLayout | 14 <include layout="@layout/payment_request_editor_dropdown" /> |
15 android:layout_width="match_parent" | |
16 android:layout_height="wrap_content" | |
17 android:orientation="vertical" | |
18 android:layout_marginStart="@dimen/pref_autofill_field_horizontal_paddin g" | |
19 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" | |
20 android:paddingBottom="5dp" > | |
21 <TextView | |
22 android:layout_width="match_parent" | |
23 android:layout_height="wrap_content" | |
24 android:focusable="true" | |
25 android:textAppearance="@style/PreferenceFloatLabelTextAppearance" | |
26 android:text="@string/autofill_profile_editor_country" | |
27 android:paddingBottom="8dp" /> | |
28 <Spinner | |
29 android:id="@+id/countries" | |
30 android:layout_width="fill_parent" | |
31 android:layout_height="wrap_content" /> | |
32 <View style="@style/PreferenceSpinnerUnderlineView" /> | |
33 </LinearLayout> | |
34 | 15 |
16 <!-- Country specific address information | |
17 Bottom margins are handled by the views that are added to this layout. | |
18 --> | |
35 <LinearLayout | 19 <LinearLayout |
36 android:id="@+id/autofill_profile_widget_root" | 20 android:id="@+id/autofill_profile_widget_root" |
37 android:layout_width="match_parent" | 21 android:layout_width="match_parent" |
38 android:layout_height="wrap_content" | 22 android:layout_height="wrap_content" |
39 android:orientation="vertical" > | 23 android:orientation="vertical" /> |
40 </LinearLayout> | |
41 | 24 |
25 <!-- Phone number --> | |
42 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout | 26 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout |
43 android:id="@+id/phone_number_label" | 27 android:id="@+id/phone_number_label" |
44 android:layout_width="match_parent" | 28 android:layout_width="match_parent" |
45 android:layout_height="wrap_content" > | 29 android:layout_height="wrap_content" |
30 android:layout_marginBottom="@dimen/pref_autofill_content_spacing" > | |
31 | |
46 <EditText | 32 <EditText |
47 android:id="@+id/phone_number_edit" | 33 android:id="@+id/phone_number_edit" |
48 android:layout_width="match_parent" | 34 android:layout_width="match_parent" |
49 android:layout_height="wrap_content" | 35 android:layout_height="wrap_content" |
50 android:imeOptions="flagNoExtractUi" | 36 android:imeOptions="flagNoExtractUi" |
51 android:inputType="phone" | 37 android:inputType="phone" |
52 android:singleLine="true" | 38 android:singleLine="true" |
53 android:hint="@string/autofill_profile_editor_phone_number" /> | 39 android:hint="@string/autofill_profile_editor_phone_number" /> |
40 | |
54 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> | 41 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> |
55 | 42 |
43 <!-- Email address --> | |
56 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout | 44 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout |
57 android:id="@+id/email_address_label" | 45 android:id="@+id/email_address_label" |
58 android:layout_width="match_parent" | 46 android:layout_width="match_parent" |
59 android:layout_height="wrap_content" > | 47 android:layout_height="wrap_content" > |
48 | |
60 <EditText | 49 <EditText |
61 android:id="@+id/email_address_edit" | 50 android:id="@+id/email_address_edit" |
62 android:layout_width="match_parent" | 51 android:layout_width="match_parent" |
63 android:layout_height="wrap_content" | 52 android:layout_height="wrap_content" |
64 android:imeOptions="flagNoExtractUi" | 53 android:imeOptions="flagNoExtractUi" |
65 android:inputType="textEmailAddress" | 54 android:inputType="textEmailAddress" |
66 android:singleLine="true" | 55 android:singleLine="true" |
67 android:hint="@string/autofill_profile_editor_email_address" /> | 56 android:hint="@string/autofill_profile_editor_email_address" /> |
57 | |
68 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> | 58 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> |
69 | 59 |
70 </merge> | 60 </merge> |
OLD | NEW |