78 lines
3.6 KiB
XML
78 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:swipe="http://schemas.android.com/apk/res-auto"
|
||
android:id="@+id/flContent"
|
||
android:background="@drawable/bg_community_diy"
|
||
android:clickable="true"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="@dimen/msg_item_height"
|
||
android:layout_marginLeft="@dimen/msg_left_right"
|
||
android:layout_marginRight="@dimen/msg_left_right">
|
||
<com.daimajia.swipe.SwipeLayout
|
||
android:id="@+id/swipeLayout"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
swipe:leftEdgeSwipeOffset="0dp"
|
||
swipe:rightEdgeSwipeOffset="0dp">
|
||
<LinearLayout
|
||
android:gravity="center"
|
||
android:tag="Bottom3"
|
||
android:background="@drawable/shape_red_delete"
|
||
android:layout_width="@dimen/msg_item_delete_width"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="2dp">
|
||
<ImageView
|
||
android:layout_gravity="center"
|
||
android:id="@+id/imgDelete"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:src="@mipmap/ic_edit_delete"
|
||
android:scaleType="centerInside"/>
|
||
</LinearLayout>
|
||
<RelativeLayout
|
||
android:paddingBottom="2dp"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent">
|
||
<com.ubt.jimu.widgets.RoundedImageView
|
||
android:id="@+id/imgMsgLogo"
|
||
android:background="@drawable/msg_portrait_bg"
|
||
android:padding="1dp"
|
||
android:layout_width="@dimen/msg_item_logo_height"
|
||
android:layout_height="@dimen/msg_item_logo_height"
|
||
android:layout_marginLeft="@dimen/msg_item_padding_left"
|
||
android:src="@drawable/default_photo"
|
||
android:scaleType="centerCrop"
|
||
android:layout_centerVertical="true"
|
||
swipe:riv_corner_radius="@dimen/msg_item_logo_height"/>
|
||
<TextView
|
||
android:textSize="@dimen/content13"
|
||
android:textColor="@color/txt_596F80"
|
||
android:gravity="center_vertical"
|
||
android:id="@+id/tvContent"
|
||
android:paddingRight="16dp"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:layout_marginLeft="@dimen/msg_item_content_margin_left"
|
||
android:text="恭喜你,达到了2级!"
|
||
android:layout_toLeftOf="@+id/tvMsgTime"
|
||
android:layout_toRightOf="@+id/imgMsgLogo"/>
|
||
<TextView
|
||
android:textSize="@dimen/content12"
|
||
android:textColor="@color/txt_96A6B4"
|
||
android:gravity="center_vertical"
|
||
android:id="@+id/tvMsgTime"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="match_parent"
|
||
android:layout_marginRight="@dimen/msg_item_padding_right"
|
||
android:text="15分钟前"
|
||
android:layout_alignParentRight="true"/>
|
||
<ImageView
|
||
android:id="@+id/imgNewMsg"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:src="@mipmap/message_not_read"
|
||
android:layout_alignParentTop="true"
|
||
android:layout_alignParentRight="true"/>
|
||
</RelativeLayout>
|
||
</com.daimajia.swipe.SwipeLayout>
|
||
</FrameLayout>
|