<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:orientation="vertical"
	xmlns:app="http://schemas.android.com/apk/res/com.lianxin.pubqq">
	<com.lianxin.pubqq.main.widght.SwipeLayout
	    android:id="@+id/swipe"
		app:drag_edge="right"
		android:layout_width="match_parent"
		android:layout_height="wrap_content">
		
	    <LinearLayout
		    android:id="@+id/layout_back"
			android:background="@color/red"
			android:gravity="center"
			android:layout_width="80dp"
			android:layout_height="65.0dip"> 
		 <TextView
				android:id="@+id/txt_del"
				style="@style/List_Layout_Title"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:text="删除"
				android:textColor="@color/white"
				android:textSize="18sp"
				android:singleLine="true" />
		</LinearLayout>
	<LinearLayout
		android:id="@+id/contactitem_layout"
		style="@style/List_Layout_Item"
		android:layout_height="65.0dip"
		android:background="@color/fragment_list_bgcolor"
		android:paddingLeft="12dip">
			<RelativeLayout
			android:id="@+id/avatar_container"
			android:layout_width="59dp"
			android:layout_marginTop="4dp"
			android:layout_height="match_parent"
			android:layout_alignParentLeft="true">
			<ImageView
				android:id="@+id/contactitem_avatar_iv"
				android:layout_width="50.0dip"
				android:layout_height="50.0dip"
				android:src="@drawable/head" />
			<TextView
				android:id="@+id/unread_msg_number"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_alignParentRight="true"
				android:background="@drawable/unread"
				android:gravity="center"
				android:textColor="@android:color/white"
				android:textSize="12sp" />
		</RelativeLayout>
		<RelativeLayout
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_weight="1.0"
	        android:orientation="vertical"
			android:paddingLeft="5dip">
			<TextView
				android:id="@+id/txt_name"
				style="@style/List_Layout_Title"
				android:textColor="@color/black"
				android:singleLine="true" />
		<TextView
			android:id="@+id/txt_time"
			style="@style/List_Layout_Title"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
		
            android:layout_alignParentRight="true"
			android:layout_marginRight="10dp"
			android:gravity="top"
			android:textSize="12sp"
			android:singleLine="true" />	
        <ImageView
        android:id="@+id/msg_state"
        android:layout_width="20dp"
        android:layout_height="20dp"
				android:layout_below="@+id/txt_name"         
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="5dp"
        android:layout_marginLeft="0dp"

        android:src="@drawable/msg_state_fail_resend"
           android:visibility="gone"/>					

			<TextView
				android:id="@+id/txt_content"
				style="@style/List_Layout_Title"
				android:layout_below="@+id/txt_name"
				android:layout_toRightOf="@+id/msg_state"
            android:layout_toLeftOf="@+id/txt_state"
             android:ellipsize="end"           				
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_marginTop="8dp"
			android:layout_marginRight="2dp"				
				android:textSize="14sp"
				android:textColor="@color/black1"
				android:singleLine="true" />
			<TextView
				android:id="@+id/txt_state"
				style="@style/List_Layout_Tag"
				android:layout_below="@+id/txt_name" 
				android:text="已读"
            android:layout_alignParentRight="true"
			android:layout_marginRight="10dp"				
				android:visibility="gone"
				android:background="@drawable/btn_bg_blue"
				android:layout_marginTop="5dp" />			
		</RelativeLayout>

	</LinearLayout>
	
		
	</com.lianxin.pubqq.main.widght.SwipeLayout>
	<View
		android:layout_width="match_parent"
		android:layout_height="1dp"
		android:background="@color/black2" />
</LinearLayout>