1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 * Copyright (C) 2017 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 --> 17 18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical" 22 android:id="@+id/rootContainer"> 23 <EditText android:id="@+id/editTextNoHint" 24 android:layout_width="wrap_content" 25 android:layout_height="wrap_content" /> 26 27 <EditText android:id="@+id/editTextHintCustom" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:autofillHints="@string/new_password_label" /> 31 32 <EditText android:id="@+id/editTextPassword" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:autofillHints="password" /> 36 37 <EditText android:id="@+id/editTextPhoneName" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:autofillHints=" phone, username " /> 41 42 <EditText android:id="@+id/editTextHintsFromArray" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:autofillHints="@array/cc_expiration_values" /> 46 47 <!-- Use px instead of dp to not have to deal with screen resolution --> 48 <LinearLayout android:id="@+id/outerView" 49 android:layout_height="wrap_content" 50 android:layout_width="wrap_content" 51 android:paddingTop="2px" 52 android:paddingBottom="5px" 53 android:paddingLeft="7px" 54 android:paddingRight="3px" 55 android:orientation="vertical" 56 android:background="#F00" 57 android:importantForAutofill="yes"> 58 <LinearLayout android:id="@+id/nestedView" 59 android:layout_height="wrap_content" 60 android:layout_width="wrap_content" 61 android:paddingTop="11px" 62 android:paddingBottom="17px" 63 android:paddingLeft="19px" 64 android:paddingRight="13px" 65 android:orientation="vertical" 66 android:background="#0F0" 67 android:importantForAutofill="no"> 68 <LinearLayout android:id="@+id/doubleNestedView" 69 android:layout_height="wrap_content" 70 android:layout_width="wrap_content" 71 android:paddingTop="23px" 72 android:paddingBottom="31px" 73 android:paddingLeft="37px" 74 android:paddingRight="29px" 75 android:orientation="vertical" 76 android:background="#00F" 77 android:importantForAutofill="yes"> 78 <EditText android:id="@+id/tripleNestedView" 79 android:layout_height="41px" 80 android:layout_width="43px" 81 android:background="#FF0" 82 android:importantForAutofill="yes" /> 83 </LinearLayout> 84 85 <EditText android:id="@+id/secondDoubleNestedView" 86 android:layout_height="47px" 87 android:layout_width="53px" 88 android:background="#F0F" 89 android:importantForAutofill="yes" /> 90 </LinearLayout> 91 </LinearLayout> 92 </LinearLayout> 93