<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white">

    <include
        layout="@layout/chat_minimalist_header_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="16dp" />

    <View
        android:id="@+id/view_line"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_below="@id/chat_header"
        android:background="#1F000000" />

    <ImageView
        android:id="@+id/chat_background_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/chat_header"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="50dp"
        android:baselineAligned="false"
        android:clickable="false"
        android:scaleType="matrix"
        android:src="@color/timcommon_transparent" />

    <FrameLayout
        android:id="@+id/custom_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/view_line"
        android:layout_marginTop="0dp"
        android:visibility="gone" />

    <FrameLayout
        android:id="@+id/chat_top_extension_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/custom_layout"
        android:layout_marginTop="0dp"
        android:visibility="gone" />

    <com.tencent.qcloud.tuikit.tuichat.minimalistui.component.noticelayout.NoticeLayout
        android:id="@+id/chat_group_apply_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/chat_top_extension_layout"
        android:visibility="gone" />

    <com.tencent.qcloud.tuikit.tuichat.minimalistui.component.noticelayout.NoticeLayout
        android:id="@+id/chat_notice_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/chat_group_apply_layout"
        android:layout_marginTop="1dp"
        android:visibility="gone" />

    <com.tencent.qcloud.tuikit.tuichat.component.pinned.GroupPinnedView
        android:id="@+id/group_pinned_message_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/chat_notice_layout"
        android:visibility="gone" />

    <com.tencent.qcloud.tuikit.tuichat.minimalistui.widget.message.MessageRecyclerView
        android:id="@+id/chat_message_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/chat_input_layout"
        android:layout_below="@+id/group_pinned_message_view"
        android:baselineAligned="false"
        android:clickable="false"
        android:descendantFocusability="blocksDescendants" />

    <androidx.cardview.widget.CardView
        android:id="@+id/jump_view_layout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/chat_input_layout"
        android:layout_alignParentEnd="true"
        android:layout_marginEnd="-16dp"
        android:layout_marginBottom="35dp"
        app:cardCornerRadius="16dp"
        app:cardElevation="6dp">

        <LinearLayout
            android:id="@+id/jump_message_layout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#FFFFFF"
            android:gravity="center"
            android:orientation="vertical"
            android:paddingStart="16dp"
            android:paddingTop="6dp"
            android:paddingEnd="16dp"
            android:paddingBottom="6dp"
            android:visibility="visible">

            <ImageView
                android:id="@+id/arrow_icon"
                android:layout_width="18.76dp"
                android:layout_height="18.76dp"
                android:background="@drawable/chat_minimalist_jump_down_icon"
                android:clickable="false"
                android:scaleType="fitCenter" />

            <TextView
                android:id="@+id/jump_message_content"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:singleLine="true"
                android:textColor="#147AFF"
                android:textSize="14sp"
                tools:text="8" />

        </LinearLayout>
    </androidx.cardview.widget.CardView>


    <com.tencent.qcloud.tuikit.tuichat.minimalistui.widget.input.InputView
        android:id="@+id/chat_input_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:layout_above="@id/forward_area"
        android:layout_marginBottom="20dp"
        android:layout_alignParentBottom="true" />

    <RelativeLayout
        android:id="@+id/voice_recording_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/chat_input_layout"
        android:layout_centerHorizontal="true"
        android:visibility="gone">

        <TextView
            android:id="@+id/recording_tips"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:textSize="14sp"
            android:textColor="@color/black"
            android:layout_marginTop="10dp" />

    </RelativeLayout>

    <androidx.cardview.widget.CardView
        android:id="@+id/forward_area"
        android:layout_alignParentBottom="true"
        app:cardBackgroundColor="#FFFFFFFF"
        app:contentPaddingBottom="26dp"
        app:cardElevation="4dp"
        android:visibility="gone"
        tools:visibility="visible"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <RelativeLayout
            android:orientation="horizontal"
            android:paddingTop="8dp"
            android:paddingBottom="8dp"
            android:paddingStart="16dp"
            android:paddingEnd="24dp"
            android:gravity="center_vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <ImageView
                android:id="@+id/forward_image"
                android:src="@drawable/chat_minimalist_forward_icon"
                android:layout_alignParentStart="true"
                android:layout_gravity="start"
                android:scaleType="centerCrop"
                android:padding="8dp"
                android:background="@drawable/common_item_pressed_effect_background"
                android:layout_width="32dp"
                android:layout_height="32dp"/>

            <ImageView
                android:id="@+id/delete_image"
                android:src="@drawable/chat_minimalist_delete_icon"
                android:background="@drawable/common_item_pressed_effect_background"
                android:layout_toEndOf="@id/forward_image"
                android:layout_gravity="start"
                android:scaleType="centerCrop"
                android:layout_marginStart="8dp"
                android:padding="8dp"
                android:layout_width="32dp"
                android:layout_height="32dp"/>

            <TextView
                android:id="@+id/forward_select_text"
                android:textSize="14sp"
                android:textColor="#FF000000"
                android:layout_centerInParent="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                tools:text="2 Selected"/>

            <TextView
                android:id="@+id/forward_cancel_btn"
                android:textSize="14sp"
                android:textColor="#FF147AFF"
                android:padding="8dp"
                android:background="@drawable/common_item_pressed_effect_background"
                android:layout_alignParentEnd="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/cancel"/>

        </RelativeLayout>
    </androidx.cardview.widget.CardView>
</RelativeLayout>
