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