<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ This file is part of FYReader.
  ~  FYReader is free software: you can redistribute it and/or modify
  ~  it under the terms of the GNU General Public License as published by
  ~  the Free Software Foundation, either version 3 of the License, or
  ~  (at your option) any later version.
  ~
  ~  FYReader is distributed in the hope that it will be useful,
  ~  but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~  GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with FYReader.  If not, see <https://www.gnu.org/licenses/>.
  ~
  ~  Copyright (C) 2020 - 2022 fengyuecanzhu
  -->

<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">

    <include layout="@layout/toolbar" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:gravity="center"
        android:orientation="horizontal"
        android:paddingLeft="15dp"
        android:paddingTop="10dp"
        android:paddingRight="15dp"
        android:paddingBottom="10dp">

        <androidx.appcompat.widget.AppCompatEditText
            android:id="@+id/et_search_key"
            android:layout_width="match_parent"
            android:layout_height="35dp"
            android:layout_weight="2"
            android:background="@drawable/search_et_backcolor"
            android:hint="@string/search_word_tip"
            android:imeOptions="actionSearch"
            android:paddingStart="10dp"
            android:textColor="@color/textPrimary" />


        <TextView
            android:id="@+id/tv_search_conform"
            android:layout_width="match_parent"
            android:layout_height="35dp"
            android:layout_weight="8"
            android:background="@drawable/search_btn_backcolor"
            android:gravity="center"
            android:text="@string/common_search"
            android:textColor="@color/textPrimaryInverted"
            android:textSize="18sp" />
    </LinearLayout>

    <xyz.fycz.myreader.widget.RefreshProgressBar
        android:id="@+id/rpb"
        android:layout_width="match_parent"
        android:layout_height="3dp"
        android:visibility="visible" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <xyz.fycz.myreader.widget.scroller.FastScrollRecyclerView
            android:id="@+id/rv_search_word1"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            tools:ignore="SpeakableTextPresentCheck" />

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/fabSearchStop"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_alignParentBottom="true"
            android:layout_marginEnd="30dp"
            android:layout_marginBottom="30dp"
            android:src="@drawable/ic_stop_black_24dp"
            android:visibility="gone"
            app:elevation="5dp"
            app:fabSize="mini"
            app:layout_anchorGravity="right|bottom"
            android:contentDescription="@string/stop" />
    </RelativeLayout>
</LinearLayout>