<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background">

    <RelativeLayout
        android:id="@+id/rl_bar"
        android:layout_width="match_parent"
        android:layout_height="50dp">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:textSize="22sp"
            android:textStyle="bold"
            android:textColor="@color/color_dashen"
            android:text="@string/app_name"
            />

        <ImageView
            android:id="@+id/iv_settings"
            android:layout_width="25dp"
            android:layout_height="25dp"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:layout_marginStart="10dp"
            android:layout_marginTop="10dp"
            android:layout_marginEnd="10dp"
            android:visibility="invisible"
            android:layout_marginBottom="10dp"
            android:src="@drawable/tab_settings_check" />

        <View
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:background="@color/list_divider_line"
            android:layout_alignParentBottom="true"
            />

    </RelativeLayout>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/rl_bar">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/background"
            android:orientation="vertical">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_start_padding"
                android:paddingBottom="@dimen/setting_vertical_padding"
                android:text="使用流程"
                android:textColor="@color/float_time_color"
                android:textSize="@dimen/setting_end_font_size"
                android:textStyle="bold" />

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_padding"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_marginEnd="@dimen/setting_end_padding"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="1.填写并点击保存链接号"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/setting_vertical_padding"
                        android:text="2.开启主功能在无障碍栏目里找到WorkTool并开启"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/setting_vertical_padding"
                        android:text="3.让本程序放在后台运行，点击进入企业微信保持手机不动屏幕常亮即可"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                </LinearLayout>

            </RelativeLayout>

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_start_padding"
                android:paddingBottom="@dimen/setting_vertical_padding"
                android:text="环境信息"
                android:textColor="@color/float_time_color"
                android:textSize="@dimen/setting_end_font_size"
                android:textStyle="bold" />

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_padding"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_marginEnd="@dimen/setting_end_padding"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="当前运行host"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                    <TextView
                        android:id="@+id/tv_host"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="127.0.0.1"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/setting_end_font_size" />

                </LinearLayout>
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_padding"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_marginEnd="@dimen/setting_end_padding"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="当前运行版本"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                    <TextView
                        android:id="@+id/tv_version"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="1.0"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/setting_end_font_size" />

                </LinearLayout>
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_padding"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_marginEnd="@dimen/setting_end_padding"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="企业微信版本"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                    <TextView
                        android:id="@+id/tv_work_version"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="4.0.2"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/setting_end_font_size" />

                </LinearLayout>
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_padding"
                android:visibility="gone"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_marginEnd="@dimen/setting_end_padding"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="AndroidID"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                    <TextView
                        android:id="@+id/tv_android_id"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text=""
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/setting_end_font_size" />

                </LinearLayout>
            </RelativeLayout>

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_start_padding"
                android:paddingBottom="@dimen/setting_vertical_padding"
                android:text="控制台"
                android:textColor="@color/float_time_color"
                android:textSize="@dimen/setting_end_font_size"
                android:textStyle="bold" />

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_start_padding"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <Switch
                    android:id="@+id/sw_accessibility"
                    android:layout_width="@dimen/setting_end_font_width"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_end_start_padding" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_toStartOf="@id/sw_accessibility"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="开启主功能"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                </LinearLayout>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_start_padding"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <Switch
                    android:id="@+id/sw_overlay"
                    android:layout_width="@dimen/setting_end_font_width"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_end_start_padding" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_toStartOf="@id/sw_overlay"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="开启悬浮窗权限"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                </LinearLayout>

            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingStart="@dimen/setting_start_padding"
                android:paddingTop="@dimen/setting_vertical_padding"
                android:paddingEnd="@dimen/setting_end_padding"
                android:paddingBottom="@dimen/setting_vertical_padding">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:layout_marginStart="@dimen/setting_start_padding"
                    android:layout_marginEnd="@dimen/setting_end_padding"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:text="链接号"
                        android:textColor="@color/color_333333"
                        android:textSize="@dimen/setting_start_font_size" />

                    <EditText
                        android:id="@+id/et_channel"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:hint="请输入申请的机器人ID"
                        android:textColor="@color/color_999999"
                        android:textSize="@dimen/setting_end_font_size" />

                </LinearLayout>
            </RelativeLayout>

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

                <Button
                    android:id="@+id/bt_save"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:background="@drawable/comment_red_btn"
                    android:paddingStart="50dp"
                    android:paddingEnd="50dp"
                    android:textSize="18sp"
                    android:textStyle="bold"
                    android:textColor="@color/white"
                    android:text="保存" />


            </LinearLayout>

        </LinearLayout>

    </ScrollView>

</RelativeLayout>
