<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (c) 2016 JustWayward Team
  ~
  ~ 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.
  -->
<RelativeLayout 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:id="@+id/read_setting_ll_menu"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_centerHorizontal="true"
    android:background="@color/nb.read.menu.bg"
    android:clickable="true"
    android:orientation="vertical"
    android:paddingLeft="30dp"
    android:paddingRight="30dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_marginLeft="50dp"
        android:layout_marginRight="50dp"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:orientation="vertical"
        android:padding="30dp"
        android:background="@drawable/shape_dialog">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="设置字体大小"
            android:textColor="@color/black"
            android:textSize="30dp" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="30dp"
            android:orientation="horizontal">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="A"
                android:textColor="@color/black"
                android:textSize="20dp" />

            <TextView
                android:id="@+id/size_btn_1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:text="|"
                android:textColor="@color/black"
                android:textSize="30dp" />

            <TextView
                android:id="@+id/size_btn_2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:text="|"
                android:textColor="@color/black"
                android:textSize="30dp" />

            <TextView
                android:id="@+id/size_btn_3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:text="|"
                android:textColor="@color/black"
                android:textSize="30dp" />

            <TextView
                android:id="@+id/size_btn_4"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:text="|"
                android:textColor="@color/black"
                android:textSize="30dp" />

            <TextView
                android:id="@+id/size_btn_5"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:text="|"
                android:textColor="@color/black"
                android:textSize="30dp" />

            <TextView
                android:id="@+id/size_btn_6"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:text="|"
                android:textColor="@color/black"
                android:textSize="30dp" />

            <TextView
                android:id="@+id/size_btn_7"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center"
                android:text="|"
                android:textColor="@color/black"
                android:textSize="30dp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="A"
                android:textColor="@color/black"
                android:textSize="50dp" />
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/nb.read_setting.divider"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:visibility="gone">

        <ImageView
            android:id="@+id/read_setting_iv_brightness_minus"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:scaleType="center"
            android:src="@mipmap/ic_brightness_minus" />

        <SeekBar
            android:id="@+id/read_setting_sb_brightness"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:max="255"
            android:maxHeight="3dp"
            android:minHeight="3dp"
            android:progressDrawable="@drawable/seekbar_bg"
            android:thumb="@drawable/seekbar_thumb"
            android:thumbOffset="10dp" />

        <ImageView
            android:id="@+id/read_setting_iv_brightness_plus"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_marginRight="20dp"
            android:scaleType="center"
            android:src="@mipmap/ic_brightness_plus" />

        <CheckBox
            android:id="@+id/read_setting_cb_brightness_auto"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="40dp"
            android:layout_height="35dp"
            android:background="@drawable/selector_btn_read_setting"
            android:button="@null"
            android:gravity="center"
            android:text="系统"
            android:textColor="@color/selector_btn_read_setting" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/nb.read_setting.divider"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:visibility="gone">

        <TextView
            android:id="@+id/read_setting_tv_font_minus"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="200dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:background="@drawable/shape_btn_read_setting_normal"
            android:gravity="center"
            android:text="Aa-"
            android:textSize="14dp" />

        <TextView
            android:id="@+id/read_setting_tv_font"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:text="15"
            android:textColor="@color/black"
            android:textSize="14dp" />

        <TextView
            android:id="@+id/read_setting_tv_font_plus"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="200dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:layout_marginRight="20dp"
            android:background="@drawable/shape_btn_read_setting_normal"
            android:gravity="center"
            android:padding="5dp"
            android:text="Aa+"
            android:textSize="18dp" />

        <CheckBox
            android:id="@+id/read_setting_cb_font_default"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="100dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:background="@drawable/selector_btn_read_setting"
            android:button="@null"
            android:gravity="center"
            android:text="默认" />
    </LinearLayout>

    <RadioGroup
        android:id="@+id/read_setting_rg_page_mode"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/nb.read_setting.divider"
        android:orientation="horizontal"
        android:visibility="gone">

        <RadioButton
            android:id="@+id/read_setting_rb_simulation"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="0dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:layout_marginRight="18dp"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_read_setting"
            android:button="@null"
            android:gravity="center"
            android:text="仿真"
            android:textSize="14dp" />

        <RadioButton
            android:id="@+id/read_setting_rb_cover"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="0dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:layout_marginRight="18dp"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_read_setting"
            android:button="@null"
            android:gravity="center"
            android:text="覆盖"
            android:textSize="14dp" />

        <RadioButton
            android:id="@+id/read_setting_rb_slide"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="0dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:layout_marginRight="18dp"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_read_setting"
            android:button="@null"
            android:gravity="center"
            android:text="滑动"
            android:textSize="14dp"
            android:visibility="gone" />

        <RadioButton
            android:id="@+id/read_setting_rb_scroll"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="0dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:layout_marginRight="18dp"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_read_setting"
            android:button="@null"
            android:gravity="center"
            android:text="滚动"
            android:textSize="14dp" />

        <RadioButton
            android:id="@+id/read_setting_rb_none"
            style="@style/NB.Theme.TextAppearance.Read.BottomMenu"
            android:layout_width="0dp"
            android:layout_height="@dimen/nb.read_setting.btn_height"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_read_setting"
            android:button="@null"
            android:gravity="center"
            android:text="无"
            android:textSize="14dp" />
    </RadioGroup>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/read_setting_rv_bg"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        android:layout_marginLeft="5dp"
        android:layout_marginTop="@dimen/nb.read_setting.divider"
        android:layout_marginRight="5dp"
        android:scrollbars="none"
        android:visibility="gone" />

    <TextView
        android:id="@+id/read_setting_tv_more"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:gravity="center_horizontal"
        android:text="更多设置 >>"
        android:textColor="@color/nb.read.menu.text"
        android:visibility="gone" />
</RelativeLayout>
