|
|
@@ -3,61 +3,47 @@
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_12"
|
|
|
- android:orientation="vertical"
|
|
|
- android:paddingBottom="@dimen/content_padding_small"
|
|
|
- android:paddingLeft="12dp"
|
|
|
- android:paddingRight="12dp"
|
|
|
- android:paddingTop="12dp">
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/task_top"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/item_title_iv"
|
|
|
android:layout_width="@dimen/content_padding_20"
|
|
|
android:layout_height="@dimen/content_padding_20"
|
|
|
- android:layout_marginRight="@dimen/content_padding_small"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
android:src="@mipmap/task_ing_icon" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/item_title_tv"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginBottom="13dp"
|
|
|
- android:layout_weight="1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:layout_marginStart="@dimen/content_padding_small"
|
|
|
+ android:layout_toEndOf="@+id/item_title_iv"
|
|
|
android:text="进行中"
|
|
|
android:textColor="@color/black"
|
|
|
- android:textSize="15dp" />
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0.5dp"
|
|
|
+ android:layout_marginTop="36dp"
|
|
|
+ android:background="@color/gray_F0F0F0" />
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/cancel_task_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginBottom="13dp"
|
|
|
- android:background="@drawable/sp_bg_gradient_rectangle_blue"
|
|
|
- android:gravity="center"
|
|
|
- android:minWidth="@dimen/view_size_80"
|
|
|
- android:padding="@dimen/content_padding_3"
|
|
|
- android:text="取消任务"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/text_size_12"
|
|
|
- android:visibility="gone" />
|
|
|
- </LinearLayout>
|
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/task_type_tv"
|
|
|
- style="@style/style_button_find"
|
|
|
- android:text="取消任务"
|
|
|
- android:visibility="invisible"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:layout_marginTop="16dp">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/item_icon_iv"
|
|
|
@@ -89,18 +75,20 @@
|
|
|
android:id="@+id/item_money"
|
|
|
android:layout_width="@dimen/find_bt_with"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
android:gravity="center"
|
|
|
android:text="+10元"
|
|
|
android:textColor="@color/txt_red"
|
|
|
android:textSize="20sp"
|
|
|
- app:layout_constraintEnd_toEndOf="parent" />
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<LinearLayout
|
|
|
android:id="@+id/item_name_tv_ll"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="70dp"
|
|
|
- android:orientation="vertical"
|
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
|
+ android:orientation="vertical"
|
|
|
app:layout_constraintEnd_toStartOf="@+id/task_type_tv"
|
|
|
app:layout_constraintStart_toEndOf="@+id/item_icon_iv">
|
|
|
|
|
|
@@ -114,10 +102,12 @@
|
|
|
android:text=""
|
|
|
android:textColor="#444444"
|
|
|
android:textSize="14sp" />
|
|
|
+
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
- android:layout_weight="3"/>
|
|
|
+ android:layout_weight="3" />
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
@@ -146,7 +136,8 @@
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
- android:layout_weight="1"/>
|
|
|
+ android:layout_weight="1" />
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/item_date_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -176,54 +167,68 @@
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/task_type_tv"
|
|
|
+ style="@style/style_button_find"
|
|
|
+ android:text="取消任务"
|
|
|
+ android:visibility="invisible"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/detail_task_tv_center"
|
|
|
+ style="@style/style_button_find"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:text="取消任务"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/item_icon_iv"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
<RelativeLayout
|
|
|
android:id="@+id/detail_task_layout"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/item_icon_iv"
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/detail_task_tv"
|
|
|
style="@style/style_button_find"
|
|
|
- android:layout_marginTop="@dimen/content_padding_small"
|
|
|
android:text="取消任务" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/detail_task_tv_down"
|
|
|
style="@style/style_button_find"
|
|
|
- android:layout_marginTop="@dimen/content_padding_small"
|
|
|
android:text="取消任务"
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/detail_task_tv_center"
|
|
|
- style="@style/style_button_find"
|
|
|
- android:layout_centerInParent="true"
|
|
|
- android:text="取消任务"
|
|
|
- android:visibility="gone"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/item_icon_iv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/countdown_tv"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
android:background="@drawable/sp_rectangle_bg_gray_radius"
|
|
|
android:padding="@dimen/content_padding_small"
|
|
|
android:text="若1小时35分22秒后任务未完成,该任务自动取消,您可以重新接受该任务"
|
|
|
android:textColor="@color/txt_black_8e8e8e"
|
|
|
android:textSize="@dimen/text_size_10"
|
|
|
android:visibility="gone" />
|
|
|
-
|
|
|
- <TextView
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/content_padding_16"/>
|
|
|
+ <View
|
|
|
android:id="@+id/line_tv"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0.5dp"
|
|
|
- android:layout_marginTop="@dimen/content_padding_20"
|
|
|
- android:background="@color/white_bg_line" />
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:background="@color/gray_F0F0F0" />
|
|
|
</LinearLayout>
|