<?xml version="1.0" encoding="utf-8"?>
<com.remax.visualnovel.widget.uitoken.view.UITokenRelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    >
    <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
        android:id="@+id/tvTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="@dimen/sp_18"
        android:textStyle="bold"
        android:textColor="@color/black"
        android:text="@string/setting"
        android:layout_marginStart="@dimen/dp_20"
        android:layout_marginTop="@dimen/dp_30"
        android:layout_marginBottom="@dimen/dp_20"
        />

    <com.remax.visualnovel.widget.uitoken.view.UITokenFrameLayout
        android:id="@+id/tv_start_new_chat"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/setting_new_chat_bg"
        android:layout_margin="@dimen/dp_20"
        android:padding="@dimen/dp_13"
        android:layout_alignParentBottom="true"
        >
        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="center"
            app:drawableLeftCompat="@mipmap/setting_new_chat"
            android:drawableTint="@color/white"
            android:drawablePadding="@dimen/dp_10"
            android:textSize="@dimen/sp_17"
            android:textStyle="bold"
            android:textColor="@color/white"
            android:text="@string/start_new_chat"
            />
    </com.remax.visualnovel.widget.uitoken.view.UITokenFrameLayout>


    <com.remax.visualnovel.ui.chat.setting.customui.MyScrollView
        android:id="@+id/scroll_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/white"
        android:layout_below="@+id/tvTitle"
        android:layout_above="@+id/tv_start_new_chat"
        >

        <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="@dimen/dp_20"
            >

            <!--  Ai model selecting related  -->
            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/dp_5"
                android:text="@string/setting_switch_model"
                android:textColor="@color/gray3"
                android:textSize="@dimen/sp_16"
                />
            <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp" >

                <com.remax.visualnovel.ui.chat.setting.customui.expandableSelector.ExpandAiModelSelectView
                    android:id="@+id/ai_model_selector"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    />


                <!--short text mode-->
                <com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout
                    android:id="@+id/ai_model_short_text_switcher"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center_vertical"
                    android:layout_marginTop="@dimen/dp_5"
                    app:backgroundColorToken="@string/color_chat_setting_item_bg"
                    app:radiusToken="@string/radius_m"
                    android:padding="@dimen/dp_12"
                    >
                    <com.remax.visualnovel.widget.uitoken.view.UITokenImageView
                        android:id="@+id/iv_left_short_text"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginEnd="@dimen/dp_10"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toTopOf="parent"
                        android:src="@mipmap/setting_short_text"
                        />
                    <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                        android:id="@+id/tv_title_short_text_mode"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="8dp"
                        android:layout_weight="1"
                        android:ellipsize="end"
                        android:gravity="start"
                        android:maxLines="1"
                        android:textSize="@dimen/sp_14"
                        android:text="@string/short_text_mode"
                        android:textColor="@color/gray6"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toStartOf="@+id/switch_short_text"
                        app:layout_constraintStart_toEndOf="@+id/iv_left_short_text"
                        app:layout_constraintTop_toTopOf="parent"
                        />
                    <com.remax.visualnovel.widget.ui.SwitchView
                        android:id="@+id/switch_short_text"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/dp_10"
                        app:switchColorStyle="purple"
                        app:switchSize="small"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintTop_toTopOf="parent"
                        />
                </com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout>

            </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>






            <!--  Sound related  -->
            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="28dp"
                android:text="@string/setting_sound"
                android:textColor="@color/gray3"
                android:textSize="@dimen/sp_16"
                />
            <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp" >

                <!--  sound selector -->
                <com.remax.visualnovel.ui.chat.setting.customui.expandableSelector.ExpandSoundSelectView
                    android:id="@+id/sound_actor_selector"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    />

                <!--play dialogue only-->
                <com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout
                    android:id="@+id/play_dialogue_only_switcher"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center_vertical"
                    android:layout_marginTop="@dimen/dp_5"
                    app:backgroundColorToken="@string/color_chat_setting_item_bg"
                    app:radiusToken="@string/radius_m"
                    android:padding="@dimen/dp_12"
                    >
                    <com.remax.visualnovel.widget.uitoken.view.UITokenImageView
                        android:id="@+id/iv_left_play_dialogue_only"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginEnd="@dimen/dp_10"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintStart_toStartOf="parent"
                        app:layout_constraintTop_toTopOf="parent"
                        android:src="@mipmap/setting_short_text"
                        />
                    <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                        android:id="@+id/tv_title_play_dialogue_only"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="8dp"
                        android:layout_weight="1"
                        android:ellipsize="end"
                        android:gravity="start"
                        android:maxLines="1"
                        android:textSize="@dimen/sp_14"
                        android:text="@string/play_dialogue_only"
                        android:textColor="@color/gray6"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toStartOf="@+id/switch_play_dialogue_only"
                        app:layout_constraintStart_toEndOf="@+id/iv_left_play_dialogue_only"
                        app:layout_constraintTop_toTopOf="parent"
                        />
                    <com.remax.visualnovel.widget.ui.SwitchView
                        android:id="@+id/switch_play_dialogue_only"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="@dimen/dp_10"
                        app:switchColorStyle="purple"
                        app:switchSize="small"
                        app:layout_constraintBottom_toBottomOf="parent"
                        app:layout_constraintEnd_toEndOf="parent"
                        app:layout_constraintTop_toTopOf="parent"
                        />
                </com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout>

            </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>

            <!--Maximum number of response tokens-->
            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="28dp"
                android:text="@string/setting_max_response_num"
                android:textColor="@color/gray3"
                android:textSize="@dimen/sp_16"
                />
            <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp" >
                <com.remax.visualnovel.ui.chat.setting.customui.MaxNumView
                    android:id="@+id/max_response_num_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    />
            </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>



            <!--  Appearance related  -->
            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="28dp"
                android:text="@string/setting_appearance"
                android:textColor="@color/gray3"
                android:textSize="@dimen/sp_16"
                />
            <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp" >
                <com.remax.visualnovel.ui.chat.setting.customui.FontSetView
                    android:id="@+id/font_set_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:padding="@dimen/dp_5"
                    />

                <com.remax.visualnovel.ui.chat.setting.customui.expandableSelector.ExpandChatModeSelectView
                    android:id="@+id/chat_model_selector"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_5"
                    />

                <com.remax.visualnovel.ui.chat.setting.customui.expandableSelector.ExpandBubbleSelectView
                    android:id="@+id/bubble_select_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_5"
                    />

            </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>

            <!--  background related  -->
            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="28dp"
                android:text="@string/setting_background"
                android:textColor="@color/gray3"
                android:textSize="@dimen/sp_16"
                />
            <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp" >

                <com.remax.visualnovel.ui.chat.setting.customui.expandableSelector.ExpandBackgroundSubView
                    android:id="@+id/background_selector_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    />

            </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>

            <!--  history related  -->
            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="28dp"
                android:text="@string/setting_history"
                android:textColor="@color/gray3"
                android:textSize="@dimen/sp_16"
                />
            <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="10dp" >
                <com.remax.visualnovel.ui.chat.setting.customui.expandableSelector.ExpandHistorySubView
                    android:id="@+id/history_select_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    />

            </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>

            <!--  Delete related  -->
            <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
                android:id="@+id/ll_delete"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:layout_marginTop="28dp"
                app:advStrokeWidth="@dimen/dp_3"
                app:advStrokeColor="@color/red_ff3b30"
                app:advRadius="@dimen/dp_25"
                >
                <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:padding="@dimen/dp_10"
                    android:gravity="center"
                    android:text="@string/setting_delete"
                    android:drawablePadding="@dimen/dp_10"
                    app:drawableLeftCompat="@mipmap/setting_delete"
                    android:textSize="@dimen/sp_17"
                    android:textColor="@color/red_ff3b30"
                    />
            </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>



        </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>

    </com.remax.visualnovel.ui.chat.setting.customui.MyScrollView>


</com.remax.visualnovel.widget.uitoken.view.UITokenRelativeLayout>