2024-10-30 18:23:42 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
|
|
<data>
|
2024-11-01 17:54:23 +08:00
|
|
|
|
2024-10-30 18:23:42 +08:00
|
|
|
<variable
|
|
|
|
name="pos"
|
|
|
|
type="Integer" />
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="bean"
|
|
|
|
type="com.tenlionsoft.aimz_k.model.MsgBean" />
|
2024-10-30 20:55:29 +08:00
|
|
|
|
|
|
|
<variable
|
|
|
|
name="state"
|
2024-10-31 19:00:40 +08:00
|
|
|
type="String" />
|
2024-10-30 18:23:42 +08:00
|
|
|
</data>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:gravity="left"
|
|
|
|
android:padding="8dp">
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/iv_user_icon"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/ic_user_default" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_content"
|
2024-11-01 17:54:23 +08:00
|
|
|
jsonConvertMsgBody="@{bean.body}"
|
2024-10-30 18:23:42 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:background="@drawable/ic_message_text_receive"
|
|
|
|
android:gravity="center|left"
|
|
|
|
android:maxWidth="200dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:textColor="@color/black"
|
2024-11-01 17:54:23 +08:00
|
|
|
android:textSize="14sp" />
|
2024-10-30 18:23:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginTop="5dp">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/pb_sending"
|
2024-11-01 17:54:23 +08:00
|
|
|
isShowLoading="@{state}"
|
2024-10-30 18:23:42 +08:00
|
|
|
android:layout_width="15dp"
|
|
|
|
android:layout_height="15dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminateBehavior="repeat"
|
|
|
|
android:indeterminateDrawable="@drawable/anim_loading" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/iv_msg_state_fail"
|
2024-11-01 17:54:23 +08:00
|
|
|
isShowFail="@{state}"
|
2024-10-30 18:23:42 +08:00
|
|
|
android:layout_width="15dp"
|
|
|
|
android:layout_height="15dp"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:src="@drawable/msg_state_fail_resend"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</layout>
|