|
@@ -1,78 +1,81 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout 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" >
|
|
|
|
|
|
<data >
|
|
|
|
|
|
<variable
|
|
|
name="item"
|
|
|
- type="com.quansu.heifengwuliu.model.Msg" />
|
|
|
+ type="com.quansu.heifengwuliu.model.MsgList" />
|
|
|
|
|
|
</data >
|
|
|
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_todo"
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingLeft="@dimen/dp_10"
|
|
|
- android:paddingTop="@dimen/dp_10"
|
|
|
- android:paddingRight="@dimen/dp_10" >
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/img_icon"
|
|
|
- android:layout_width="45dp"
|
|
|
- android:layout_height="45dp"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:padding="@dimen/dp_13"
|
|
|
- android:src="@{item.checked==0?@drawable/uncomplete:@drawable/complete}"
|
|
|
- tools:src="@mipmap/ic_launcher" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ app:qmui_radius="6dp"
|
|
|
+ app:qmui_borderColor="@color/white"
|
|
|
+ app:qmui_backgroundColor="@color/white"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_todo"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_marginStart="@dimen/dp_8"
|
|
|
- android:layout_toEndOf="@id/img_icon"
|
|
|
- android:orientation="vertical" >
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingLeft="12dp"
|
|
|
+ android:paddingTop="19dp"
|
|
|
+ android:paddingBottom="17dp"
|
|
|
+ android:paddingRight="15dp" >
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_name"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="1"
|
|
|
- android:text="@{item.title}"
|
|
|
- android:textColor="@{item.checked==1?@color/text_hint:@color/text_black}"
|
|
|
- android:textSize="@dimen/sp_16"
|
|
|
- tools:text="@string/app_name" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_desc"
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_icon"
|
|
|
+ android:layout_width="42dp"
|
|
|
+ android:layout_height="42dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:src="@drawable/ic_msg_one"
|
|
|
+ />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/dp_2"
|
|
|
- android:text="@{item.create_time}"
|
|
|
- android:textColor="@{item.checked==1?@color/text_hint:@color/text_black}"
|
|
|
- tools:text="@string/app_name" />
|
|
|
-
|
|
|
- </LinearLayout >
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/img_sort"
|
|
|
- android:layout_width="50dp"
|
|
|
- android:layout_height="50dp"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:padding="@dimen/dp_14"
|
|
|
- android:src="@drawable/ic_sort" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_marginLeft="@dimen/dp_20"
|
|
|
- android:layout_marginTop="@dimen/dp_10"
|
|
|
- android:background="@color/llGray" />
|
|
|
- </RelativeLayout >
|
|
|
-</layout >
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginStart="@dimen/dp_8"
|
|
|
+ android:layout_toEndOf="@id/img_icon"
|
|
|
+ android:orientation="vertical" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:text="@{item.title}"
|
|
|
+ android:textColor="#3E3D3D"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ tools:text="@string/app_name" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_desc"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:text="@{item.create_time}"
|
|
|
+ android:textColor="#8B8B8B"
|
|
|
+ android:textSize="11dp"
|
|
|
+ tools:text="@string/app_name" />
|
|
|
+
|
|
|
+ </LinearLayout >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </RelativeLayout >
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+</layout >
|