react-native-netease-imui
Version:
react-native netease imui
59 lines (51 loc) • 2.44 kB
text/xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
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="match_parent"
android:layout_marginTop="4dp">
<include layout="@layout/item_head_left" />
<TextView
android:id="@+id/aurora_tv_msgitem_display_name"
style="@style/aurora_msgitem_display_name_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/aurora_iv_msgitem_avatar" />
<FrameLayout
android:layout_marginTop="@dimen/aurora_message_padding_top"
android:layout_marginLeft="@dimen/aurora_avatar_padding"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/aurora_tv_msgitem_display_name"
android:layout_toEndOf="@id/aurora_iv_msgitem_avatar"
android:layout_toRightOf="@id/aurora_iv_msgitem_avatar">
<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" />
</FrameLayout>
</RelativeLayout>
</LinearLayout>