react-native-netease-imui
Version:
react-native netease imui
105 lines (93 loc) • 4.38 kB
text/xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/aurora_msgitem_send_style">
<TextView
android:id="@+id/aurora_tv_msgitem_date"
style="@style/aurora_msgitem_date_style"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:gravity="right"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/aurora_ib_msgitem_resend"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="5dp"
android:background="@drawable/aurora_send_msg_error"
android:clickable="true"
android:scaleType="fitCenter"
android:visibility="invisible" />
<ProgressBar
android:id="@+id/aurora_pb_msgitem_sending"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="3dp"
android:visibility="visible"/>
</RelativeLayout>
<LinearLayout
android:id="@+id/item_layout"
android:layout_marginRight="@dimen/aurora_avatar_padding"
android:layout_centerVertical="true"
android:layout_below="@id/aurora_tv_msgitem_display_name"
android:layout_toRightOf="@id/aurora_iv_msgitem_avatar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/link_bg"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/layout_top"
android:clickable="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/card_icon"
android:layout_margin="@dimen/red_packet_image_margin"
android:src="@drawable/aurora_headicon_default"
android:layout_width="48dp"
android:layout_height="48dp" />
<TextView
android:id="@+id/card_name"
android:layout_toRightOf="@+id/card_icon"
android:layout_marginTop="@dimen/red_packet_top"
android:layout_centerVertical="true"
android:textSize="@dimen/red_packet_comments_size"
android:lines="1"
android:ellipsize="end"
android:textColor="@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/card_id"
android:layout_marginTop="6dp"
android:layout_toRightOf="@+id/card_icon"
android:layout_below="@+id/card_name"
android:textColor="@color/black"
android:visibility="gone"
android:textSize="@dimen/red_packet_text_size"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="@color/link_card" />
<TextView
android:id="@+id/card_type"
android:background="@drawable/red_packet_bottom"
android:padding="5dp"
android:textSize="@dimen/red_packet_tag_size"
android:textColor="@color/red_packet_tag"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="红包" />
</LinearLayout>
<include layout="@layout/item_head_right"/>
</LinearLayout>
</LinearLayout>