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

<merge
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <TextView
        android:id="@+id/fastscroll_bubble"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end"
        android:gravity="center"
        android:maxLines="1"
        android:textSize="@dimen/fastscroll_bubble_textsize"
        android:visibility="gone"
        tools:background="@drawable/fastscroll_bubble"
        tools:text="A"
        tools:textColor="#ffffff"
        tools:visibility="visible" />

    <FrameLayout
        android:id="@+id/fastscroll_scrollbar"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:paddingEnd="@dimen/fastscroll_scrollbar_padding_end"
        android:paddingLeft="@dimen/fastscroll_scrollbar_padding_start"
        android:paddingRight="@dimen/fastscroll_scrollbar_padding_end"
        android:paddingStart="@dimen/fastscroll_scrollbar_padding_start"
        android:visibility="gone"
        tools:visibility="visible">

        <ImageView
            android:id="@+id/fastscroll_track"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="center_horizontal"
            tools:ignore="ContentDescription"
            tools:src="@drawable/fastscroll_track" />

        <ImageView
            android:id="@+id/fastscroll_handle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            tools:ignore="ContentDescription"
            tools:src="@drawable/fastscroll_handle" />

    </FrameLayout>

</merge>