<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="com.fastaccess.ui.modules.search.SearchUserActivity">

    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/appbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="?android:toolbarStyle">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?actionBarSize"
            android:background="?colorPrimary"
            app:layout_scrollFlags="scroll|enterAlways">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="?actionBarSize"
                android:layout_marginEnd="@dimen/spacing_normal"
                android:orientation="horizontal">

                <com.fastaccess.ui.widgets.FontAutoCompleteEditText
                    android:id="@+id/searchEditText"
                    style="@style/TextAppearance.Widget.AppCompat.Toolbar.Title"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_gravity="center"
                    android:layout_weight="1"
                    android:background="@color/transparent"
                    android:completionThreshold="1"
                    android:dropDownAnchor="@id/tabs"
                    android:hint="@string/search"
                    android:imeOptions="actionSearch"
                    android:inputType="text"
                    android:maxLines="1"
                    android:textColorHint="?android:textColorSecondary"/>

                <com.fastaccess.ui.widgets.ForegroundImageView
                    android:id="@+id/clear"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:background="?selectableItemBackgroundBorderless"
                    android:contentDescription="@string/clear"
                    android:padding="@dimen/spacing_micro"
                    android:src="@drawable/ic_clear"
                    android:visibility="gone"/>

                <com.fastaccess.ui.widgets.ForegroundImageView
                    android:id="@+id/search"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:background="?selectableItemBackgroundBorderless"
                    android:contentDescription="@string/search"
                    android:padding="@dimen/spacing_micro"
                    android:src="@drawable/ic_search"/>

            </LinearLayout>

        </androidx.appcompat.widget.Toolbar>

    </com.google.android.material.appbar.AppBarLayout>

    <com.fastaccess.ui.widgets.FontCheckbox
        android:id="@+id/forkCheckBox"
        style="@style/TextAppearance.AppCompat.Title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?selectableItemBackground"
        android:button="@color/transparent"
        android:checked="true"
        android:drawableEnd="?android:attr/listChoiceIndicatorMultiple"
        android:drawablePadding="@dimen/spacing_xs_large"
        android:padding="@dimen/spacing_xs_large"
        android:text="@string/include_forks"/>

    <FrameLayout
        android:id="@+id/containerFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</LinearLayout>
