diff options
author | Douglas Sigelbaum <sigelbaum@google.com> | 2017-11-09 18:10:02 -0800 |
---|---|---|
committer | Douglas Sigelbaum <sigelbaum@google.com> | 2017-11-11 07:46:11 +0000 |
commit | 224932e4d7d31a863fa22b748b3c97979ffc0250 (patch) | |
tree | 818c62b9b01dd1c1b500ba0f733909c1928bab65 /input | |
parent | c3607b2709c0e1c5310348b8a00bd4ce14540926 (diff) | |
download | android-224932e4d7d31a863fa22b748b3c97979ffc0250.tar.gz |
Autofill sample: more formatting.
Test: manual
Change-Id: I038e85c7422277282b35f6bd91c8708bc6333486
Diffstat (limited to 'input')
35 files changed, 148 insertions, 133 deletions
diff --git a/input/autofill/AutofillFramework/Application/build.gradle b/input/autofill/AutofillFramework/Application/build.gradle index 04778235..4a877db7 100644 --- a/input/autofill/AutofillFramework/Application/build.gradle +++ b/input/autofill/AutofillFramework/Application/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'com.android.application' // keep boilerplate and common code separate from // the main sample code. List<String> dirs = [ - 'main'] // main sample code; look here for the interesting stuff. + 'main'] // main sample code; look here for the interesting stuff. android { compileSdkVersion 26 diff --git a/input/autofill/AutofillFramework/Application/src/main/AndroidManifest.xml b/input/autofill/AutofillFramework/Application/src/main/AndroidManifest.xml index 05fe780a..9ccf51f0 100644 --- a/input/autofill/AutofillFramework/Application/src/main/AndroidManifest.xml +++ b/input/autofill/AutofillFramework/Application/src/main/AndroidManifest.xml @@ -18,7 +18,7 @@ android:versionCode="1" android:versionName="1.0"> - <uses-permission android:name="android.permission.INTERNET"/> + <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_autocomplete_logo_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_autocomplete_logo_24dp.xml index 80f30a2f..18dc280b 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_autocomplete_logo_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_autocomplete_logo_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FFFFFFFF" - android:pathData="M20,2L4,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h14l4,4L22,4c0,-1.1 -0.9,-2 -2,-2zM18,14L6,14v-2h12v2zM18,11L6,11L6,9h12v2zM18,8L6,8L6,6h12v2z"/> + android:pathData="M20,2L4,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h14l4,4L22,4c0,-1.1 -0.9,-2 -2,-2zM18,14L6,14v-2h12v2zM18,11L6,11L6,9h12v2zM18,8L6,8L6,6h12v2z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_custom_virtual_logo_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_custom_virtual_logo_24dp.xml index 3a8ee3b2..f230e268 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_custom_virtual_logo_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_custom_virtual_logo_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FF000000" - android:pathData="M13,7h-2v2h2L13,7zM13,11h-2v2h2v-2zM17,11h-2v2h2v-2zM3,3v18h18L21,3L3,3zM19,19L5,19L5,5h14v14zM13,15h-2v2h2v-2zM9,11L7,11v2h2v-2z"/> + android:pathData="M13,7h-2v2h2L13,7zM13,11h-2v2h2v-2zM17,11h-2v2h2v-2zM3,3v18h18L21,3L3,3zM19,19L5,19L5,5h14v14zM13,15h-2v2h2v-2zM9,11L7,11v2h2v-2z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_edittexts_logo_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_edittexts_logo_24dp.xml index 17e403d9..b260df23 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_edittexts_logo_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_edittexts_logo_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FF000000" - android:pathData="M4,9h16v2L4,11zM4,13h10v2L4,15z"/> + android:pathData="M4,9h16v2L4,11zM4,13h10v2L4,15z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_email_black_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_email_black_24dp.xml index 174c1272..2c31d686 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_email_black_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_email_black_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FF000000" - android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z"/> + android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_info_black_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_info_black_24dp.xml index c297121b..a3dba1d9 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_info_black_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_info_black_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FF000000" - android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z"/> + android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_person_black_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_person_black_24dp.xml index 6534d9f0..032db129 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_person_black_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_person_black_24dp.xml @@ -13,8 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<vector android:alpha="0.50" android:height="24dp" - android:viewportHeight="24.0" android:viewportWidth="24.0" - android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> - <path android:fillColor="#FF000000" android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:alpha="0.50" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_send_white_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_send_white_24dp.xml index f614267a..5e92b266 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_send_white_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_send_white_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FFFFFFFF" - android:pathData="M2.01,21L23,12 2.01,3 2,10l15,2 -15,2z"/> + android:pathData="M2.01,21L23,12 2.01,3 2,10l15,2 -15,2z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_spinners_logo_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_spinners_logo_24dp.xml index 5fb27a24..ea91d031 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_spinners_logo_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_spinners_logo_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FF000000" - android:pathData="M9,11L7,11v2h2v-2zM13,11h-2v2h2v-2zM17,11h-2v2h2v-2zM19,4h-1L18,2h-2v2L8,4L8,2L6,2v2L5,4c-1.11,0 -1.99,0.9 -1.99,2L3,20c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,6c0,-1.1 -0.9,-2 -2,-2zM19,20L5,20L5,9h14v11z"/> + android:pathData="M9,11L7,11v2h2v-2zM13,11h-2v2h2v-2zM17,11h-2v2h2v-2zM19,4h-1L18,2h-2v2L8,4L8,2L6,2v2L5,4c-1.11,0 -1.99,0.9 -1.99,2L3,20c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,6c0,-1.1 -0.9,-2 -2,-2zM19,20L5,20L5,9h14v11z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_view_module_black_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_view_module_black_24dp.xml index ab36b076..bb739bb3 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_view_module_black_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_view_module_black_24dp.xml @@ -1,9 +1,9 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FF000000" - android:pathData="M4,11h5L9,5L4,5v6zM4,18h5v-6L4,12v6zM10,18h5v-6h-5v6zM16,18h5v-6h-5v6zM10,11h5L15,5h-5v6zM16,5v6h5L21,5h-5z"/> + android:pathData="M4,11h5L9,5L4,5v6zM4,18h5v-6L4,12v6zM10,18h5v-6h-5v6zM16,18h5v-6h-5v6zM10,11h5L15,5h-5v6zM16,5v6h5L21,5h-5z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_web_black_24dp.xml b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_web_black_24dp.xml index 48e7b7ba..d5e35bfd 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_web_black_24dp.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/drawable/ic_web_black_24dp.xml @@ -14,11 +14,11 @@ * limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> <path android:fillColor="#FF000000" - android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM15,18L4,18v-4h11v4zM15,13L4,13L4,9h11v4zM20,18h-4L16,9h4v9z"/> + android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM15,18L4,18v-4h11v4zM15,13L4,13L4,9h11v4zM20,18h-4L16,9h4v9z" /> </vector> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/activity_main.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/activity_main.xml index 40e374a3..ece13e9d 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/activity_main.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/activity_main.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" @@ -26,8 +25,7 @@ android:layout_height="wrap_content" app:tabMode="fixed" /> - <android.support.v4.view.ViewPager - xmlns:android="http://schemas.android.com/apk/res/android" + <android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" /> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/cc_exp_date.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/cc_exp_date.xml index a4dd5377..aebe9f83 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/cc_exp_date.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/cc_exp_date.xml @@ -14,7 +14,7 @@ * limitations under the License. --> <merge xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto"> + xmlns:app="http://schemas.android.com/apk/res-auto"> <android.support.constraint.ConstraintLayout android:id="@+id/navigation_item_layout" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_activity.xml index 76930308..414803a4 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/authLayout" android:layout_width="match_parent" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_anti_pattern_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_anti_pattern_activity.xml index 28060d83..9a3d4ae3 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_anti_pattern_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_anti_pattern_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_compound_view_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_compound_view_activity.xml index 98a29a55..1e00f263 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_compound_view_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_compound_view_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_date_picker_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_date_picker_activity.xml index e09cdf64..ace95d4e 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_date_picker_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_date_picker_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/authLayout" android:layout_width="match_parent" @@ -110,9 +109,9 @@ android:layout_height="wrap_content" android:layout_marginTop="@dimen/spacing_large" android:importantForAutofill="no" - android:text="@string/credit_card_security_code_label" android:labelFor="@+id/creditCardSecurityCode" android:paddingEnd="@dimen/padding_normal" + android:text="@string/credit_card_security_code_label" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/creditCardExpirationView" /> @@ -124,8 +123,8 @@ android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:autofillHints="creditCardSecurityCode" - android:inputType="number" android:ems="6" + android:inputType="number" app:layout_constraintBottom_toBottomOf="@+id/creditCardSecurityCodeLabel" app:layout_constraintStart_toEndOf="@+id/creditCardSecurityCodeLabel" app:layout_constraintTop_toTopOf="@+id/creditCardSecurityCodeLabel" /> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_spinners_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_spinners_activity.xml index 11474617..6c1bfef4 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_spinners_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/credit_card_spinners_activity.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/email_compose_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/email_compose_activity.xml index 843d507a..bd1bd435 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/email_compose_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/email_compose_activity.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_common_examples.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_common_examples.xml index 582b790e..f1b5a7fc 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_common_examples.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_common_examples.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<ScrollView - xmlns:android="http://schemas.android.com/apk/res/android" +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_service_verification.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_service_verification.xml index 582b790e..f1b5a7fc 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_service_verification.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/fragment_service_verification.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<ScrollView - xmlns:android="http://schemas.android.com/apk/res/android" +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/login_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/login_activity.xml index a98becf7..1cb4232a 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/login_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/login_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/authLayout" android:layout_width="match_parent" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/login_webview_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/login_webview_activity.xml index 3985f72e..abbd1f46 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/login_webview_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/login_webview_activity.xml @@ -14,6 +14,6 @@ * limitations under the License. --> <WebView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/webview" - android:layout_width="match_parent" - android:layout_height="match_parent" />
\ No newline at end of file + android:id="@+id/webview" + android:layout_width="match_parent" + android:layout_height="match_parent" />
\ No newline at end of file diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/login_with_autocomplete_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/login_with_autocomplete_activity.xml index d6768c45..d9f89e7d 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/login_with_autocomplete_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/login_with_autocomplete_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/authLayout" android:layout_width="match_parent" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_partitions_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_partitions_activity.xml index 599fd4dc..8b99e6a4 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_partitions_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_partitions_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" @@ -55,13 +54,13 @@ android:layout_height="@dimen/multiple_partitions_height" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" - android:paddingTop="@dimen/spacing_large" - android:paddingStart="@dimen/spacing_large" android:paddingEnd="@dimen/spacing_large" + android:paddingStart="@dimen/spacing_large" + android:paddingTop="@dimen/spacing_large" + app:internalTextSize="34sp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/multiple_partitions_header" - app:internalTextSize="34sp"/> + app:layout_constraintTop_toBottomOf="@+id/multiple_partitions_header" /> <TextView android:id="@+id/clear" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_steps_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_steps_activity.xml index 16afa35d..fe7fd098 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_steps_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/multiple_steps_activity.xml @@ -16,26 +16,25 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="match_parent" - android:orientation="vertical" android:focusable="true" - android:focusableInTouchMode="true"> + android:focusableInTouchMode="true" + android:orientation="vertical"> <TextView android:id="@+id/status" android:layout_width="match_parent" - android:layout_height="wrap_content"/> + android:layout_height="wrap_content" /> <LinearLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="200dp" - android:orientation="horizontal" > - </LinearLayout> + android:orientation="horizontal"></LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal" > + android:orientation="horizontal"> <Button android:id="@+id/prev" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_button.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_button.xml index e4c91ec0..84e27be4 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_button.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_button.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,7 +14,7 @@ * limitations under the License. --> <merge xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools"> + xmlns:tools="http://schemas.android.com/tools"> <LinearLayout android:id="@+id/navigation_button_layout" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_item.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_item.xml index e4e55f25..200ab16b 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_item.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/navigation_item.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,8 +14,8 @@ * limitations under the License. --> <merge xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools"> + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools"> <android.support.constraint.ConstraintLayout android:id="@+id/navigation_item_layout" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/virtual_login_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/virtual_login_activity.xml index d7e8436d..31ca52f2 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/virtual_login_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/virtual_login_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" @@ -53,11 +52,11 @@ android:id="@+id/custom_view" android:layout_width="match_parent" android:layout_height="@dimen/custom_view_height" - android:paddingTop="@dimen/spacing_large" - android:paddingStart="@dimen/spacing_large" - android:paddingEnd="@dimen/spacing_large" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" + android:paddingEnd="@dimen/spacing_large" + android:paddingStart="@dimen/spacing_large" + android:paddingTop="@dimen/spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/custom_virtual_login_header" /> diff --git a/input/autofill/AutofillFramework/Application/src/main/res/layout/welcome_activity.xml b/input/autofill/AutofillFramework/Application/src/main/res/layout/welcome_activity.xml index 60d6e1fc..a400a84c 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/layout/welcome_activity.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/layout/welcome_activity.xml @@ -13,8 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. --> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" diff --git a/input/autofill/AutofillFramework/Application/src/main/res/raw/sample_form.html b/input/autofill/AutofillFramework/Application/src/main/res/raw/sample_form.html index 2a26223c..92596a59 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/raw/sample_form.html +++ b/input/autofill/AutofillFramework/Application/src/main/res/raw/sample_form.html @@ -1,5 +1,4 @@ -<!DOCTYPE html> -<!-- +<!DOCTYPE html><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,18 +14,52 @@ * limitations under the License. --> <html> -<body> -<form> - Username: <input type='text' name='username' autocomplete='username'/><br/><br/> - Password: <input type='password' name='password' autocomplete='current-password'/><br/><br/> - Work email: <input type='text' name='email' autocomplete='work email'/><br/><br/> - Shipping address1: <input type='text' name='address' - autocomplete='section-whatever shipping address-line1'/><br/> - Shipping address2: <input type='text' name='address' - autocomplete='shipping address-line2'/><br/> - Shipping address3: <input type='text' name='address' - autocomplete='section-whatever address-line3'/><br/><br/> - <input type='submit' value='Login'/><br/> -</form> -</body> + <body> + <form> + Username: + <input + type='text' + name='username' + autocomplete='username' /> + <br /> + <br /> + Password: + <input + type='password' + name='password' + autocomplete='current-password' /> + <br /> + <br /> + Work email: + <input + type='text' + name='email' + autocomplete='work email' /> + <br /> + <br /> + Shipping address1: + <input + type='text' + name='address' + autocomplete='section-whatever shipping address-line1' /> + <br /> + Shipping address2: + <input + type='text' + name='address' + autocomplete='shipping address-line2' /> + <br /> + Shipping address3: + <input + type='text' + name='address' + autocomplete='section-whatever address-line3' /> + <br /> + <br /> + <input + type='submit' + value='Login' /> + <br /> + </form> + </body> </html>
\ No newline at end of file diff --git a/input/autofill/AutofillFramework/Application/src/main/res/values/attrs.xml b/input/autofill/AutofillFramework/Application/src/main/res/values/attrs.xml index 23bf5cff..e4382782 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/values/attrs.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/values/attrs.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/input/autofill/AutofillFramework/Application/src/main/res/values/dimens.xml b/input/autofill/AutofillFramework/Application/src/main/res/values/dimens.xml index 43410b84..965af8a0 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/values/dimens.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/values/dimens.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/input/autofill/AutofillFramework/Application/src/main/res/values/strings.xml b/input/autofill/AutofillFramework/Application/src/main/res/values/strings.xml index b5b9fea2..15705380 100644 --- a/input/autofill/AutofillFramework/Application/src/main/res/values/strings.xml +++ b/input/autofill/AutofillFramework/Application/src/main/res/values/strings.xml @@ -1,5 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); |