<?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");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/root"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Label with no ID" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/input_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <EditText
            android:id="@+id/input"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </LinearLayout>

    <EditText
        android:id="@+id/captcha"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:importantForAutofill="no"
        android:text="Y U NO CAPTCHA ME?" />

    <ImageView
        android:id="@+id/image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/android" />

    <ImageView
        android:id="@+id/important_image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:importantForAutofill="yes"
        android:src="@drawable/android" />

    <LinearLayout
         android:id="@+id/not_important_container_excluding_descendants"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:importantForAutofill="noExcludeDescendants">

        <FrameLayout
            android:id="@+id/not_important_container_excluding_descendants_child"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:importantForAutofill="yes">

            <View
                android:id="@+id/not_important_container_excluding_descendants_grand_child"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/android">
            </View>

        </FrameLayout>

    </LinearLayout>

    <LinearLayout
        android:id="@+id/important_container_excluding_descendants"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:importantForAutofill="yesExcludeDescendants">

        <FrameLayout
            android:id="@+id/important_container_excluding_descendants_child"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:importantForAutofill="yes">

            <View
                android:id="@+id/important_container_excluding_descendants_grand_child"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/android">
            </View>

        </FrameLayout>

    </LinearLayout>

    <LinearLayout
        android:id="@+id/not_important_container_mixed_descendants"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:importantForAutofill="no">

        <FrameLayout
            android:id="@+id/not_important_container_mixed_descendants_child"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:importantForAutofill="yes">

            <ImageView
                android:id="@+id/not_important_container_mixed_descendants_grand_child"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/android"
                android:importantForAutofill="no">
            </ImageView>

        </FrameLayout>

    </LinearLayout>

    <view class="android.autofillservice.cts.activities.FatActivity$MyView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:autofillHints="importantAmI">
    </view>

</LinearLayout>
