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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 19 android:fitsSystemWindows="true" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content"> 22 <LinearLayout android:id="@+id/rootContainer" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:orientation="vertical" 26 android:focusable="true" 27 android:focusableInTouchMode="true"> 28 <EditText android:id="@+id/editTextNoHint" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" /> 31 32 <EditText android:id="@+id/editTextHintCustom" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:autofillHints="@string/new_password_label" /> 36 37 <EditText android:id="@+id/editTextPassword" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:autofillHints="password" /> 41 42 <EditText android:id="@+id/editTextPhoneName" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:autofillHints=" phone, username " /> 46 47 <EditText android:id="@+id/editTextHintsFromArray" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:autofillHints="@array/cc_expiration_values" /> 51 52 <!-- Use px instead of dp to not have to deal with screen resolution --> 53 <LinearLayout android:id="@+id/outerView" 54 android:layout_height="wrap_content" 55 android:layout_width="wrap_content" 56 android:paddingTop="2px" 57 android:paddingBottom="5px" 58 android:paddingLeft="7px" 59 android:paddingRight="3px" 60 android:orientation="vertical" 61 android:background="#F00" 62 android:importantForAutofill="yes"> 63 <LinearLayout android:id="@+id/nestedView" 64 android:layout_height="wrap_content" 65 android:layout_width="wrap_content" 66 android:paddingTop="11px" 67 android:paddingBottom="17px" 68 android:paddingLeft="19px" 69 android:paddingRight="13px" 70 android:orientation="vertical" 71 android:background="#0F0" 72 android:importantForAutofill="no"> 73 <LinearLayout android:id="@+id/doubleNestedView" 74 android:layout_height="wrap_content" 75 android:layout_width="wrap_content" 76 android:paddingTop="23px" 77 android:paddingBottom="11px" 78 android:paddingLeft="37px" 79 android:paddingRight="29px" 80 android:orientation="vertical" 81 android:background="#00F" 82 android:importantForAutofill="yes"> 83 <EditText android:id="@+id/tripleNestedView" 84 android:layout_height="11px" 85 android:layout_width="43px" 86 android:background="#FF0" 87 android:importantForAutofill="yes" /> 88 </LinearLayout> 89 90 <EditText android:id="@+id/secondDoubleNestedView" 91 android:layout_height="17px" 92 android:layout_width="53px" 93 android:background="#F0F" 94 android:importantForAutofill="yes" /> 95 </LinearLayout> 96 </LinearLayout> 97 </LinearLayout> 98</ScrollView> 99