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 xmlns:tools="http://schemas.android.com/tools" 20 android:id="@+id/root" 21 android:layout_width="wrap_content" 22 android:layout_height="match_parent" 23 android:focusable="true" 24 android:focusableInTouchMode="true" 25 android:orientation="vertical" > 26 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:orientation="horizontal" > 31 32 <TextView 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:text="Label with no ID" /> 36 </LinearLayout> 37 38 <LinearLayout 39 android:id="@+id/input_container" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:orientation="horizontal" > 43 44 <EditText 45 android:id="@+id/input" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" /> 48 </LinearLayout> 49 50 <EditText 51 android:id="@+id/captcha" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:importantForAutofill="no" 55 android:text="Y U NO CAPTCHA ME?" /> 56 57 <ImageView 58 android:id="@+id/image" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:src="@drawable/android" /> 62 63 <ImageView 64 android:id="@+id/important_image" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:importantForAutofill="yes" 68 android:src="@drawable/android" /> 69 70 <LinearLayout 71 android:id="@+id/not_important_container_excluding_descendants" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:importantForAutofill="noExcludeDescendants"> 75 76 <FrameLayout 77 android:id="@+id/not_important_container_excluding_descendants_child" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:importantForAutofill="yes"> 81 82 <View 83 android:id="@+id/not_important_container_excluding_descendants_grand_child" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:src="@drawable/android"> 87 </View> 88 89 </FrameLayout> 90 91 </LinearLayout> 92 93 <LinearLayout 94 android:id="@+id/important_container_excluding_descendants" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:importantForAutofill="yesExcludeDescendants"> 98 99 <FrameLayout 100 android:id="@+id/important_container_excluding_descendants_child" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:importantForAutofill="yes"> 104 105 <View 106 android:id="@+id/important_container_excluding_descendants_grand_child" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:src="@drawable/android"> 110 </View> 111 112 </FrameLayout> 113 114 </LinearLayout> 115 116 <LinearLayout 117 android:id="@+id/not_important_container_mixed_descendants" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:importantForAutofill="no"> 121 122 <FrameLayout 123 android:id="@+id/not_important_container_mixed_descendants_child" 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:importantForAutofill="yes"> 127 128 <ImageView 129 android:id="@+id/not_important_container_mixed_descendants_grand_child" 130 android:layout_width="wrap_content" 131 android:layout_height="wrap_content" 132 android:src="@drawable/android" 133 android:importantForAutofill="no"> 134 </ImageView> 135 136 </FrameLayout> 137 138 </LinearLayout> 139 140 <view class="android.autofillservice.cts.FatActivity$MyView" 141 android:layout_width="wrap_content" 142 android:layout_height="wrap_content" 143 android:autofillHints="importantAmI"> 144 </view> 145 146</LinearLayout> 147