<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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/navRoot"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
>

    <com.remax.visualnovel.widget.uitoken.view.UITokenFrameLayout
        android:id="@+id/navBg"
        android:layout_width="match_parent"
        android:layout_height="@dimen/nav_height"
        app:backgroundColorToken="@string/color_background_specialmap"
    />

    <LinearLayout
        android:id="@+id/navLayout"
        android:layout_width="match_parent"
        android:layout_height="@dimen/nav_height"
        android:layout_gravity="bottom"
        android:gravity="center_vertical"
        android:orientation="horizontal"
    >

        <com.remax.visualnovel.widget.ui.buttons.IconButtonView
            android:id="@+id/navBack"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:buttonOverrideAttr="true"
            android:layout_marginStart="@dimen/nav_back_margin_start"
            android:text="@string/icon_arrow_left_border"
            app:iconButtonName="NavButton"
            app:iconButtonSizeType="medium"
        />

        <com.google.android.flexbox.FlexboxLayout
            android:id="@+id/tvTitleLayout"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/nav_title_margin"
            android:layout_marginEnd="@dimen/nav_title_margin"
            android:layout_weight="1"
        >

            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:id="@+id/tvTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:maxLines="1"
                app:layout_alignSelf="center"
                app:layout_flexShrink="1"
                app:textColorToken="@string/color_txt_primary_normal"
                app:textToken="@string/txt_title_m"
                tools:text="Title"
            />

            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:id="@+id/tvTitleArrow"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="4dp"
                android:text="@string/icon_arrow_down_fill"
                android:textSize="16sp"
                android:visibility="gone"
                app:layout_alignSelf="center"
                app:layout_flexShrink="0"
                app:onlyIconFont="true"
                app:textColorToken="@string/color_txt_secondary_normal"
                tools:visibility="visible"
            />

        </com.google.android.flexbox.FlexboxLayout>

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginEnd="12dp"
            android:gravity="center_vertical"
            android:orientation="horizontal"
        >

            <com.remax.visualnovel.widget.ui.buttons.ButtonView
                android:id="@+id/rightBtn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:visibility="gone"
                app:buttonName="DefaultButton_Primary"
                app:buttonSizeType="small"
                tools:text="button"
                tools:visibility="visible"
            />

            <com.remax.visualnovel.widget.ui.buttons.IconButtonView
                android:id="@+id/rightIconBtn2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginEnd="8dp"
                android:visibility="gone"
                app:iconButtonName="NavButton"
                app:iconButtonSizeType="medium"
                tools:visibility="visible"
            />

            <com.remax.visualnovel.widget.ui.buttons.IconButtonView
                android:id="@+id/rightIconBtn1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginEnd="4dp"
                android:visibility="gone"
                app:iconButtonName="NavButton"
                app:iconButtonSizeType="medium"
                tools:visibility="visible"
            />
        </LinearLayout>

        <com.remax.visualnovel.widget.ui.buttons.ButtonView
            android:id="@+id/rightConfirmBtn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="24dp"
            android:text="@string/confirm"
            android:visibility="gone"
            app:buttonName="DefaultButton_Primary"
            app:buttonSizeType="small"
            tools:visibility="visible"
        />

        <com.remax.visualnovel.widget.ui.buttons.TextButtonView
            android:id="@+id/contractUsBtn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="24dp"
            android:visibility="gone"
            app:textButtonName="TextButton_Primary"
            app:textButtonSizeType="large"
            tools:visibility="visible"
        />

    </LinearLayout>

</FrameLayout>
