<?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/chat_background_color">

    <com.tencent.qcloud.tuikit.timcommon.component.TitleBarLayout
        android:id="@+id/chat_title_bar"
        android:layout_width="match_parent"
        android:layout_height="@dimen/page_title_height" />

    <View
        android:id="@+id/view_line"
        android:layout_width="match_parent"
        android:layout_height="0.3dp"
        android:layout_below="@+id/chat_title_bar"
        android:background="@color/chat_title_line_color" />

    <ImageView
        android:id="@+id/chat_background_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/view_line"
        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.classicui.component.noticelayout.NoticeLayout
        android:id="@+id/chat_notice_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/chat_top_extension_layout"
        android:layout_marginTop="1dp"
        android:visibility="gone" />

    <com.tencent.qcloud.tuikit.tuichat.classicui.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_notice_layout"
        android:visibility="gone" />

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

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

    <androidx.cardview.widget.CardView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/chat_input_layout"
        android:layout_alignParentEnd="true"
        android:layout_marginEnd="@dimen/btn_margin_right"
        android:layout_marginBottom="@dimen/btn_margin_right"
        app:cardCornerRadius="4dp"
        app:cardElevation="6dp"
        app:cardUseCompatPadding="true">

        <LinearLayout
            android:id="@+id/jump_message_layout"
            android:layout_width="wrap_content"
            android:layout_height="33.6dp"
            android:background="#FFFFFF"
            android:gravity="center"
            android:orientation="horizontal"
            android:paddingStart="10.08dp"
            android:paddingTop="9.12dp"
            android:paddingEnd="9.6dp"
            android:paddingBottom="8.64dp"
            android:visibility="visible">

            <ImageView
                android:id="@+id/arrow_icon"
                android:layout_width="11.52dp"
                android:layout_height="11.52dp"
                android:layout_gravity="center"
                android:background="?attr/chat_jump_recent_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:layout_marginStart="5.76dp"
                android:gravity="center_vertical"
                android:singleLine="true"
                android:textColor="?attr/core_primary_color"
                android:textSize="11.52sp" />

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

    <FrameLayout
        android:id="@+id/fl_input_float"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/shortcut_container"
        android:paddingTop="5dp"
        android:background="?attr/chat_input_area_bg"
        android:visibility="gone"
        tools:visibility="visible"/>

    <FrameLayout
        android:id="@+id/shortcut_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/chat_input_layout"
        android:paddingTop="5dp"
        android:background="?attr/chat_input_area_bg"
        android:visibility="gone"
        tools:visibility="visible"/>

    <com.tencent.qcloud.tuikit.tuichat.classicui.widget.input.InputView
        android:id="@+id/chat_input_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/forward_layout"
        android:layout_alignParentBottom="true" />

    <LinearLayout
        android:id="@+id/voice_recording_view"
        android:layout_width="150dp"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:background="@drawable/ic_volume_dialog_bg"
        android:gravity="center_horizontal"
        android:paddingStart="10dp"
        android:paddingEnd="10dp"
        android:orientation="vertical"
        android:visibility="gone"
        tools:visibility="visible">

        <TextView
            android:id="@+id/voice_count_down_tv"
            android:textColor="@color/white"
            android:textSize="13sp"
            android:layout_marginBottom="10dp"
            android:layout_marginTop="10dp"
            android:textDirection="ltr"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <ImageView
            android:id="@+id/recording_icon"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:layout_marginTop="10dp"
            android:scaleType="centerCrop" />

        <TextView
            android:id="@+id/recording_tips"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:layout_marginBottom="10dp"
            android:textSize="12sp" />

    </LinearLayout>

    <LinearLayout
        android:id="@+id/forward_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="#E6E9EB"
        android:gravity="center_horizontal"
        android:orientation="horizontal"
        android:paddingStart="16dp"
        android:paddingTop="15.36dp"
        android:paddingEnd="16dp"
        android:paddingBottom="46.08dp"
        android:visibility="gone"
        tools:visibility="visible">

        <LinearLayout
            android:id="@+id/forward_one_by_one_button"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="0.33"
            android:gravity="center"
            android:orientation="vertical"
            android:paddingStart="4dp"
            android:paddingEnd="4dp">

            <ImageView
                android:layout_width="38.4dp"
                android:layout_height="38.4dp"
                android:background="@drawable/multi_select_forward_one" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="5.76dp"
                android:text="@string/forward_mode_onebyone"
                android:layout_gravity="center_horizontal"
                android:gravity="center"
                android:textColor="#444444"
                android:textSize="11.52sp" />

        </LinearLayout>


        <LinearLayout
            android:id="@+id/forward_merge_button"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="0.33"
            android:gravity="center"
            android:orientation="vertical"
            android:paddingStart="4dp"
            android:paddingEnd="4dp">


            <ImageView
                android:layout_width="38.4dp"
                android:layout_height="38.4dp"
                android:background="@drawable/multi_select_forward_merge" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="5.76dp"
                android:text="@string/forward_mode_merge"
                android:layout_gravity="center_horizontal"
                android:gravity="center"
                android:textColor="#444444"
                android:textSize="11.52sp" />

        </LinearLayout>


        <LinearLayout
            android:id="@+id/delete_button"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="0.33"
            android:gravity="center"
            android:orientation="vertical"
            android:paddingStart="4dp"
            android:paddingEnd="4dp">

            <ImageView
                android:layout_width="38.4dp"
                android:layout_height="38.4dp"
                android:background="@drawable/multi_select_delete" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="5.76dp"
                android:text="@string/delete_button"
                android:layout_gravity="center_horizontal"
                android:gravity="center"
                android:textColor="#444444"
                android:textSize="11.52sp" />
        </LinearLayout>

    </LinearLayout>
</RelativeLayout>
