<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/chat_header"
    android:orientation="horizontal"
    android:gravity="center_vertical"
    android:paddingTop="8dp"
    android:paddingBottom="8dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <ImageView
        android:id="@+id/back_btn"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:layout_marginEnd="8dp"
        android:scaleType="centerInside"
        android:background="@drawable/chat_back"/>

    <com.tencent.qcloud.tuikit.timcommon.component.gatherimage.SynthesizedImageView
        android:id="@+id/avatar_img"
        android:layout_width="40dp"
        android:layout_height="40dp"
        tools:background="@android:drawable/ic_menu_gallery"
        app:round_radius = "25dp"/>

    <LinearLayout
        android:id="@+id/user_name_area"
        android:orientation="vertical"
        android:layout_weight="1"
        android:layout_marginStart="8dp"
        android:layout_width="0dp"
        android:layout_height="wrap_content">

        <TextView
            android:id="@+id/chat_name"
            android:textSize="14sp"
            android:lineHeight="16.7sp"
            android:textFontWeight="700"
            android:textStyle="bold"
            android:maxLines="1"
            android:ellipsize="end"
            android:textColor="@color/black_font_color"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            tools:text="DanielDanielDanielDanielDanielDanielDanielDanielDanielDaniel"/>

        <TextView
            android:id="@+id/chat_description"
            android:textSize="12sp"
            android:lineHeight="14.32sp"
            android:textFontWeight="400"
            android:textColor="#666666"
            android:maxLines="1"
            android:ellipsize="end"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:hint="@string/chat_header_not_desc"
            tools:text="onlineonlineonlineonlineonlineonlineonlineonlineonlineonlineonline"
            />

    </LinearLayout>

    <HorizontalScrollView
        android:id="@+id/extension_scroll_area"
        android:layout_width="wrap_content"
        android:layout_height="match_parent">

        <LinearLayout
            android:id="@+id/extension_area"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:gravity="center_vertical"
            android:orientation="horizontal"/>

    </HorizontalScrollView>

    <ImageView
        android:id="@+id/clear_message_button"
        android:layout_width="22dp"
        android:layout_height="22dp"
        android:src="@drawable/chat_chatbot_clear_message_icon"
        android:layout_marginStart="19dp"
        tools:visibility="visible"
        android:visibility="gone"/>

</LinearLayout>