<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/app_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/transparent"
        app:elevation="0dp">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="0dp"
            app:layout_scrollFlags="scroll"
            app:contentInsetStart="0dp"
            app:contentInsetEnd="0dp">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:layout_marginTop="10dp"
                android:orientation="vertical">

                <LinearLayout
                    android:gravity="center_vertical"
                    android:layout_width="match_parent"
                    android:layout_height="40dp"
                    android:background="@drawable/background_pill"
                    android:layout_marginStart="5dp"
                    android:layout_marginEnd="5dp"
                    android:padding="5dp">

                    <ImageView
                        android:layout_width="26dp"
                        android:layout_height="match_parent"
                        android:contentDescription="@string/cd_search_icon"
                        app:srcCompat="@drawable/ic_search_thin"
                        android:scaleType="fitCenter"
                        android:layout_marginStart="10dp"
                        android:layout_marginEnd="15dp"
                        android:paddingTop="5dp"
                        android:paddingBottom="5dp"
                        app:tint="@color/gray_ac" />

                    <EditText
                        android:id="@+id/edit_search"
                        android:layout_width="0dp"
                        android:layout_weight="1"
                        android:layout_height="match_parent"
                        android:inputType="text"
                        android:imeOptions="actionDone"
                        android:background="@color/transparent"
                        android:padding="0dp"
                        android:singleLine="true"
                        android:hint="@string/search_history"/>

                    <ImageButton
                        android:id="@+id/button_clear_search"
                        android:layout_width="46dp"
                        android:layout_height="match_parent"
                        android:contentDescription="@string/cd_button_clear_search"
                        android:scaleType="fitCenter"
                        app:srcCompat="@drawable/ic_close_thin"
                        app:tint="@color/gray_ac"
                        android:paddingTop="5dp"
                        android:paddingBottom="5dp"
                        android:paddingStart="10dp"
                        android:paddingEnd="10dp"/>
                </LinearLayout>

                <TextView
                    android:id="@+id/text_header"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/clear_history"
                    app:layout_constraintLeft_toLeftOf="parent"
                    app:layout_constraintTop_toTopOf="parent"
                    android:fontFamily="@font/inter_light"
                    android:textSize="16dp"
                    android:textColor="@color/white"
                    android:paddingStart="5dp"
                    android:paddingTop="15dp"
                    android:paddingBottom="8dp" />

                <com.futo.platformplayer.views.others.TagsView
                    android:id="@+id/tags_text"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />

                <TextView
                    android:id="@+id/text_filters"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/filters"
                    app:layout_constraintLeft_toLeftOf="parent"
                    app:layout_constraintTop_toTopOf="parent"
                    android:fontFamily="@font/inter_light"
                    android:textSize="16dp"
                    android:textColor="@color/white"
                    android:paddingStart="5dp"
                    android:paddingTop="15dp"
                    android:paddingBottom="8dp" />

                <com.futo.platformplayer.views.ToggleBar
                    android:id="@+id/toggle_bar"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />
            </LinearLayout>
        </androidx.appcompat.widget.Toolbar>
    </com.google.android.material.appbar.AppBarLayout>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recycler_history"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false"
        app:layout_behavior="@string/appbar_scrolling_view_behavior" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>