2020-04-02 10:43:40 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:paddingStart="11dp"
|
|
|
|
android:paddingEnd="11dp">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_item_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginBottom="@dimen/bubble_time_layout_margin_bottom"
|
|
|
|
android:layout_marginTop="@dimen/bubble_time_layout_margin_top"
|
|
|
|
android:background="@drawable/nim_bg_message_tip"
|
|
|
|
android:paddingLeft="7dip"
|
|
|
|
android:paddingRight="7dip"
|
2021-12-16 11:31:53 +08:00
|
|
|
android:textColor="@color/color_grey_999999"
|
2021-03-11 18:47:17 +08:00
|
|
|
android:textSize="10sp"
|
2020-04-02 10:43:40 +08:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
|
|
|
android:id="@+id/message_item_portrait_left"
|
|
|
|
android:layout_width="@dimen/avatar_size_in_session"
|
|
|
|
android:layout_height="@dimen/avatar_size_in_session"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_below="@id/message_item_time"
|
|
|
|
android:layout_marginEnd="11dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
|
|
|
android:id="@+id/message_item_portrait_right"
|
|
|
|
android:layout_width="@dimen/avatar_size_in_session"
|
|
|
|
android:layout_height="@dimen/avatar_size_in_session"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_below="@id/message_item_time"
|
|
|
|
android:layout_marginStart="11dp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/message_item_name_layout"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/message_item_time"
|
|
|
|
android:layout_toLeftOf="@id/message_item_portrait_right"
|
|
|
|
android:layout_toRightOf="@id/message_item_portrait_left"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/message_item_name_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/message_item_time"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:layout_marginRight="3dp"
|
|
|
|
android:layout_toRightOf="@id/message_item_portrait_left"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_item_nickname"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/message_item_time"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:layout_marginTop="-3dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxWidth="160dip"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="#000000"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_below="@id/message_item_name_layout"
|
2020-04-20 20:57:12 +08:00
|
|
|
android:layout_toStartOf="@id/message_item_portrait_right"
|
|
|
|
android:layout_toEndOf="@id/message_item_portrait_left">
|
2020-04-02 10:43:40 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/message_item_body"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:gravity="bottom"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/message_item_progress"
|
|
|
|
android:layout_width="20dip"
|
|
|
|
android:layout_height="20dip"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:indeterminateDrawable="@drawable/nim_progress_small_white"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/message_item_alert"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:src="@drawable/nim_ic_failed"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<include layout="@layout/nim_read_recipt_layout" />
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/message_item_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@android:color/transparent" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</RelativeLayout>
|