<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
  ~
  ~ 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.
  -->

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/search_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:visibility="invisible">

    <View
        android:id="@+id/transparent_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="?attr/search_view_layover_bg_color"
        android:visibility="gone" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <LinearLayout
            android:id="@+id/search_top_bar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="@android:color/white"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <androidx.appcompat.widget.AppCompatImageButton
                android:id="@+id/action_up_btn"
                style="@style/MSV_ImageButton"
                app:srcCompat="?attr/search_view_ic_back" />

            <androidx.appcompat.widget.AppCompatEditText
                android:id="@+id/searchTextView"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:background="@null"
                android:hint="@string/xui_search_hint"
                android:imeOptions="actionSearch"
                android:inputType="textNoSuggestions"
                android:paddingStart="?attr/search_view_text_padding"
                android:paddingEnd="?attr/search_view_text_padding"
                android:singleLine="true"
                android:textColor="?attr/search_view_text_color"
                android:textColorHint="?attr/search_view_text_color_hint"
                android:textSize="?attr/search_view_text_size" />

            <androidx.appcompat.widget.AppCompatImageButton
                android:id="@+id/action_voice_btn"
                style="@style/MSV_ImageButton"
                app:srcCompat="?attr/search_view_ic_video" />

            <androidx.appcompat.widget.AppCompatImageButton
                android:id="@+id/action_clear_btn"
                style="@style/MSV_ImageButton"
                android:visibility="gone"
                app:srcCompat="?attr/search_view_ic_clear" />

        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="#10000000" />

        <ListView
            android:id="@+id/suggestion_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@android:color/white"
            android:divider="@android:color/transparent" />
    </LinearLayout>

</FrameLayout>