<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/scrollView"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.constraintlayout.widget.ConstraintLayout
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        >

        <androidx.appcompat.widget.AppCompatImageView
            android:id="@+id/levelBg"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:src="@mipmap/crush_level_bg"
            app:layout_constraintDimensionRatio="h,1179:1200"
            app:layout_constraintTop_toTopOf="parent" />


        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/lottieView"
            android:layout_width="120dp"
            android:layout_height="120dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/levelBgTop"
            app:lottie_autoPlay="true"
            app:lottie_loop="true"
            app:lottie_rawRes="@raw/wave" />

        <androidx.appcompat.widget.AppCompatImageView
            android:id="@+id/levelBgTop"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:src="@mipmap/crush_level_bg_top"
            app:layout_constraintDimensionRatio="h,1179:642"
            app:layout_constraintTop_toTopOf="parent" />

        <androidx.appcompat.widget.AppCompatImageView
            android:id="@+id/levelBgBottom"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:src="@mipmap/crush_level_bg_bottom"
            app:layout_constraintBottom_toBottomOf="@+id/levelBg"
            app:layout_constraintTop_toBottomOf="@+id/levelBgTop" />


        <com.remax.visualnovel.widget.ui.UserAvatarView
            android:id="@+id/aiAvatarView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="56dp"
            android:layout_marginTop="134dp"
            android:visibility="invisible"
            app:avatarSizeType="L"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <com.remax.visualnovel.widget.ui.UserAvatarView
            android:id="@+id/myAvatarView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="56dp"
            android:visibility="invisible"
            app:avatarSizeType="L"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="@+id/aiAvatarView" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/tvLevel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="24dp"
            android:text="@string/app_name"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/levelBgBottom"
            app:textColorToken="@string/color_txt_primary_normal"
            app:textToken="@string/txt_numDisplay_s" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenImageView
            android:id="@+id/dividerMeet2"
            style="@style/UIDivider.NoMargin"
            android:layout_width="0dp"
            android:layout_marginStart="24dp"
            android:layout_marginEnd="12dp"
            app:layout_constraintBottom_toBottomOf="@+id/tvMeet"
            app:layout_constraintEnd_toStartOf="@+id/tvMeet"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/tvMeet" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenImageView
            android:id="@+id/dividerMeet1"
            style="@style/UIDivider.NoMargin"
            android:layout_width="0dp"
            android:layout_marginStart="12dp"
            android:layout_marginEnd="24dp"
            app:layout_constraintBottom_toBottomOf="@+id/tvMeet"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/tvMeet"
            app:layout_constraintTop_toTopOf="@+id/tvMeet" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/tvMeet"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:text="@string/no_intention_yet"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/tvLevel"
            app:textColorToken="@string/color_txt_primary_normal"
            app:textToken="@string/txt_display_s" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/tvMeetDesc"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:gravity="center"
            android:paddingBottom="12dp"
            android:text="@string/flirting_desc"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/tvMeet"
            app:textColorToken="@string/color_txt_primary_normal"
            app:textToken="@string/txt_body_s" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
            android:id="@+id/retrieveGroup"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="24dp"
            android:layout_marginTop="12dp"
            android:orientation="horizontal"
            android:padding="16dp"
            android:visibility="gone"
            app:backgroundColorToken="@string/color_surface_base_normal"
            app:layout_constraintTop_toBottomOf="@+id/tvMeetDesc"
            app:radiusToken="@string/radius_m"
            tools:visibility="visible">

            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:id="@+id/retrieveTitle"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginEnd="16dp"
                android:layout_weight="1"
                android:text="@string/app_name"
                app:textColorToken="@string/color_txt_primary_normal"
                app:textToken="@string/txt_body_s" />

            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/retrieve"
                app:textColorToken="@string/color_primary_variant_normal"
                app:textToken="@string/txt_label_s" />

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

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/rv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginHorizontal="24dp"
            android:layout_marginTop="16dp"
            android:nestedScrollingEnabled="false"
            app:layout_constraintTop_toBottomOf="@+id/retrieveGroup"
            />


    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>


