<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    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">


    <View
        android:id="@+id/top_bg"
        android:layout_width="match_parent"
        android:layout_height="250dp"
        android:background="@drawable/bg_chat_call"
        app:layout_constraintBottom_toBottomOf="parent" />


    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/bottom_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="@dimen/dp_30"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        >
        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/tv_hangUp"
            android:layout_width="@dimen/dp_65"
            android:layout_height="@dimen/dp_65"
            android:layout_marginBottom="@dimen/dp_30"
            android:gravity="center"
            android:text="@string/icon_call_hangup"
            android:textSize="45sp"
            app:backgroundColorToken="@string/color_important_normal"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:onlyIconFont="true"
            app:radiusToken="@string/radius_pill"
            app:textColorToken="@string/color_txt_primary_normal" />


        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/tv_state_hint"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/dp_30"
            android:gravity="center"
            android:text="@string/call_connecting"
            android:textColor="@color/white"
            android:textSize="@dimen/sp_14"
            app:layout_constraintBottom_toTopOf="@+id/tv_hangUp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/tv_fail_hint"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/dp_25"
            android:layout_marginHorizontal="@dimen/dp_20"
            android:padding="@dimen/dp_14"
            android:gravity="center"
            android:text="@string/call_fail_hint"
            android:textColor="@color/white"
            android:textSize="@dimen/sp_12"
            app:advBgColor="@color/gray28"
            app:advRadius="@dimen/dp_15"
            app:layout_constraintBottom_toTopOf="@+id/tv_hangUp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            android:visibility="gone"
            />

        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/lottie_speaking"
            android:layout_width="156dp"
            android:layout_height="24dp"
            android:visibility="visible"
            android:layout_marginBottom="@dimen/dp_23"
            app:layout_constraintBottom_toTopOf="@+id/tv_state_hint"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:lottie_autoPlay="true"
            app:lottie_loop="true"
            app:lottie_rawRes="@raw/call_listening" />
    </androidx.constraintlayout.widget.ConstraintLayout>



    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@+id/bottom_container"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        >

        <com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:orientation="vertical"
            >
            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:id="@+id/tv_last_voice_text_2"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="@dimen/dp_40"
                android:gravity="center"
                android:text="The threads of fate intertwine once more... I have been awaiting your arrival, seeker.The threads of fate intertwine once more... I have been awaiting your arrival, seeker.The threads of fate intertwine once more... I have been awaiting your arrival, seeker."
                android:textColor="@color/chat_call_voice_text_color"
                android:textSize="@dimen/sp_14" />

            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:id="@+id/tv_last_voice_text_1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/dp_30"
                android:layout_marginHorizontal="@dimen/dp_40"
                android:gravity="center"
                android:text="The threads of fate intertwine once more... I have been awaiting your arrival, seeker.The threads of fate intertwine once more"
                android:textColor="@color/white"
                android:textSize="@dimen/sp_14" />

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

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.constraintlayout.widget.ConstraintLayout>