UNPKG

react-native-netease-imui

Version:
78 lines (67 loc) 3.12 kB
<?xml version="1.0" encoding="utf-8"?> <LinearLayout 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" style="@style/aurora_msgitem_send_style"> <TextView android:id="@+id/aurora_tv_msgitem_date" style="@style/aurora_msgitem_date_style" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp"> <include layout="@layout/item_head_right"/> <FrameLayout android:id="@+id/aurora_fl_msgitem_video_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_marginRight="8dp" android:layout_toLeftOf="@+id/aurora_iv_msgitem_avatar" android:layout_toStartOf="@+id/aurora_iv_msgitem_avatar" android:background="@drawable/aurora_bg_video"> <cn.jiguang.imui.view.ShapeImageView android:id="@+id/aurora_iv_msgitem_cover" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:scaleType="centerCrop" app:videomessage_radius="8dp" /> <ImageView android:id="@+id/aurora_iv_msgitem_play" android:layout_width="64dp" android:layout_height="64dp" android:layout_gravity="center" android:src="@drawable/aurora_videomessage_play" /> <TextView android:id="@+id/aurora_tv_duration" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right|bottom" android:layout_marginBottom="4dp" android:layout_marginRight="8dp" android:textColor="@android:color/black" android:textSize="12sp" tools:text="00:02" /> </FrameLayout> <ImageButton android:id="@+id/aurora_ib_msgitem_resend" android:layout_width="20dp" android:layout_height="20dp" android:layout_centerVertical="true" android:layout_marginRight="5dp" android:layout_toLeftOf="@id/aurora_fl_msgitem_video_container" android:clickable="true" android:scaleType="fitCenter" android:background="@drawable/aurora_send_msg_error" android:visibility="gone" /> <ProgressBar android:id="@+id/aurora_pb_msgitem_sending" android:layout_width="20dp" android:layout_height="20dp" android:layout_centerVertical="true" android:layout_marginRight="3dp" android:layout_toLeftOf="@id/aurora_fl_msgitem_video_container" android:visibility="visible"/> </RelativeLayout> </LinearLayout>