| 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" | |
| 34 android:text="@string/autofill_profile_editor_phone_number" /> | |
| 35 | |
| 36 <EditText | |
| 37 android:id="@+id/autofill_profile_editor_phone_number_edit" | |
| 38 android:layout_width="match_parent" | 44 android:layout_width="match_parent" |
| 39 android:layout_height="wrap_content" | 45 android:layout_height="wrap_content" |
| 40 android:imeOptions="flagNoExtractUi" | 46 app:floatLabelTextAppearance="@style/PreferenceFloatLabelTextApp
earance" > |
| 41 android:inputType="phone" | 47 <EditText |
| 42 android:singleLine="true" /> | 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> |
| 43 | 56 |
| 44 <TextView | 57 <org.chromium.chrome.browser.widget.FloatLabelLayout |
| 45 style="@style/BoldTextFieldLabel" | |
| 46 android:text="@string/autofill_profile_editor_email_address" /> | |
| 47 | |
| 48 <EditText | |
| 49 android:id="@+id/autofill_profile_editor_email_address_edit" | |
| 50 android:layout_width="match_parent" | 58 android:layout_width="match_parent" |
| 51 android:layout_height="wrap_content" | 59 android:layout_height="wrap_content" |
| 52 android:imeOptions="flagNoExtractUi" | 60 app:floatLabelTextAppearance="@style/PreferenceFloatLabelTextApp
earance" > |
| 53 android:inputType="textEmailAddress" | 61 <EditText |
| 54 android:singleLine="true" /> | 62 android:id="@+id/autofill_profile_editor_email_address_edit" |
| 63 android:layout_width="match_parent" |
| 64 android:layout_height="wrap_content" |
| 65 android:imeOptions="flagNoExtractUi" |
| 66 android:inputType="textEmailAddress" |
| 67 android:singleLine="true" |
| 68 android:hint="@string/autofill_profile_editor_email_address"
/> |
| 69 </org.chromium.chrome.browser.widget.FloatLabelLayout> |
| 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 |