|
@@ -1,274 +1,85 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
|
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:orientation="vertical">
|
|
|
|
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
- <RelativeLayout
|
|
|
|
|
- android:id="@+id/task_top"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginTop="@dimen/content_padding_10"
|
|
|
|
|
- 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_marginStart="12dp"
|
|
|
|
|
- android:src="@mipmap/task_ing_icon" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_title_tv"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="@dimen/content_padding_20"
|
|
|
|
|
- android:layout_marginStart="@dimen/content_padding_small"
|
|
|
|
|
- android:layout_marginEnd="12dp"
|
|
|
|
|
- android:layout_toEndOf="@+id/item_title_iv"
|
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:text="进行中"
|
|
|
|
|
- android:textColor="@color/black"
|
|
|
|
|
- android:textSize="15sp" />
|
|
|
|
|
-
|
|
|
|
|
- <View
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="0.5dp"
|
|
|
|
|
- android:layout_marginTop="33dp"
|
|
|
|
|
- android:background="@color/gray_F0F0F0" />
|
|
|
|
|
- </RelativeLayout>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <android.support.constraint.ConstraintLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/item_icon_iv"
|
|
|
|
|
+ android:layout_width="68dp"
|
|
|
|
|
+ android:layout_height="68dp"
|
|
|
|
|
+ android:src="@drawable/icon_lj"
|
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginStart="12dp"
|
|
|
- android:layout_marginEnd="12dp">
|
|
|
|
|
-
|
|
|
|
|
- <View
|
|
|
|
|
- android:id="@+id/item_top_v"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="@dimen/content_padding_10" />
|
|
|
|
|
-
|
|
|
|
|
- <ImageView
|
|
|
|
|
- android:id="@+id/item_icon_iv"
|
|
|
|
|
- android:layout_width="70dp"
|
|
|
|
|
- android:layout_height="70dp"
|
|
|
|
|
- android:src="@drawable/icon_lj"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/item_top_v" />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/end_of_time_tv"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="@dimen/content_padding_4"
|
|
|
|
|
- android:layout_marginTop="55dp"
|
|
|
|
|
- android:layout_marginEnd="@dimen/content_padding_4"
|
|
|
|
|
- android:background="@drawable/shape_ash_stroke_white_solid_rectangle"
|
|
|
|
|
- android:gravity="center"
|
|
|
|
|
- android:lines="1"
|
|
|
|
|
- android:textColor="#989898"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
- android:visibility="gone"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/item_icon_iv"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="@+id/item_icon_iv"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/item_top_v" />
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="70dp"
|
|
|
|
|
- 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"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/item_top_v">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_name_tv"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:ellipsize="middle"
|
|
|
|
|
- android:gravity="start"
|
|
|
|
|
- android:maxLines="2"
|
|
|
|
|
- android:text=""
|
|
|
|
|
- android:textColor="#444444"
|
|
|
|
|
- android:textSize="14sp" />
|
|
|
|
|
-
|
|
|
|
|
- <View
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_weight="3" />
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_num_tv"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:text=""
|
|
|
|
|
- android:textColor="#cc8e8e8e"
|
|
|
|
|
- android:textSize="10sp" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_num_tv1"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="@dimen/content_padding"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:text=""
|
|
|
|
|
- android:textColor="#cc8e8e8e"
|
|
|
|
|
- android:textSize="10sp"
|
|
|
|
|
- android:visibility="gone" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_num_tv2"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="@dimen/content_padding"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:text=""
|
|
|
|
|
- android:textColor="#cc8e8e8e"
|
|
|
|
|
- android:textSize="10sp"
|
|
|
|
|
- android:visibility="gone" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <View
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_weight="1" />
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginTop="@dimen/content_padding_2"
|
|
|
|
|
- android:layout_marginEnd="@dimen/content_padding_8"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_date_tv"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:lines="1"
|
|
|
|
|
- android:text=""
|
|
|
|
|
- android:textColor="#cc8e8e8e"
|
|
|
|
|
- android:textSize="10sp" />
|
|
|
|
|
|
|
|
|
|
- <ImageView
|
|
|
|
|
- android:id="@+id/item_date_question_img"
|
|
|
|
|
- android:layout_width="15dp"
|
|
|
|
|
- android:layout_height="15dp"
|
|
|
|
|
- android:src="@mipmap/task_game_qustion_icon"
|
|
|
|
|
- android:visibility="gone"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintStart_toEndOf="@+id/item_date_tv" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/item_song_iv"
|
|
|
|
|
+ android:layout_width="21dp"
|
|
|
|
|
+ android:layout_height="21dp"
|
|
|
|
|
+ android:layout_marginStart="33dp"
|
|
|
|
|
+ android:src="@mipmap/ic_song"
|
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/item_icon_iv"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/item_icon_iv" />
|
|
|
|
|
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/item_name_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
|
|
+ android:text="王者荣耀皮肤"
|
|
|
|
|
+ android:textColor="#ff333333"
|
|
|
|
|
+ android:textSize="14sp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/item_song_iv"
|
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/item_song_iv"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/item_song_iv" />
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/task_type_tv"
|
|
|
|
|
- style="@style/style_button_find"
|
|
|
|
|
- android:layout_marginTop="5dp"
|
|
|
|
|
- android:text="@string/task_cancel"
|
|
|
|
|
- android:visibility="invisible"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/item_top_v" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/detail_task_tv_center"
|
|
|
|
|
- style="@style/style_button_find"
|
|
|
|
|
- android:layout_centerInParent="true"
|
|
|
|
|
- android:text="@string/task_cancel"
|
|
|
|
|
- android:visibility="gone"
|
|
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/item_icon_iv"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/item_top_v" />
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="70dp"
|
|
|
|
|
- android:gravity="end"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/item_top_v">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_money"
|
|
|
|
|
- android:layout_width="@dimen/find_bt_with"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="center"
|
|
|
|
|
- android:text="+10元"
|
|
|
|
|
- android:textColor="@color/txt_red"
|
|
|
|
|
- android:textSize="18sp" />
|
|
|
|
|
- <View
|
|
|
|
|
- android:layout_width="1dp"
|
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_weight="1" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/item_money_vip_tv"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="center"
|
|
|
|
|
- android:minWidth="@dimen/find_bt_with"
|
|
|
|
|
- android:text="会员:+11元"
|
|
|
|
|
- android:textColor="#C3995E"
|
|
|
|
|
- android:textSize="10sp"
|
|
|
|
|
- android:visibility="gone"/>
|
|
|
|
|
- <View
|
|
|
|
|
- android:layout_width="1dp"
|
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_weight="1" />
|
|
|
|
|
-
|
|
|
|
|
- <RelativeLayout
|
|
|
|
|
- android:id="@+id/detail_task_layout"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/detail_task_tv"
|
|
|
|
|
- style="@style/style_button_find"
|
|
|
|
|
- android:text="@string/task_cancel" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/detail_task_tv_down"
|
|
|
|
|
- style="@style/style_button_find"
|
|
|
|
|
- android:text="@string/task_cancel"
|
|
|
|
|
- android:visibility="gone" />
|
|
|
|
|
-
|
|
|
|
|
- </RelativeLayout>
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
- </android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/item_info_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
|
|
+ android:text="内容:xx皮肤"
|
|
|
|
|
+ android:textColor="#ff999999"
|
|
|
|
|
+ android:textSize="12sp"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="@id/item_song_iv"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/item_song_iv" />
|
|
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
|
|
+ android:id="@+id/item_value_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="12dp"
|
|
|
|
|
- android:layout_marginTop="16dp"
|
|
|
|
|
|
|
+ android:layout_marginEnd="17dp"
|
|
|
|
|
+ android:text="价值:¥566"
|
|
|
|
|
+ android:textColor="#ff333333"
|
|
|
|
|
+ android:textSize="12sp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/item_song_iv"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/item_song_iv" />
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/item_change_one_iv"
|
|
|
|
|
+ android:layout_width="22dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:adjustViewBounds="true"
|
|
|
|
|
+ android:padding="5dp"
|
|
|
|
|
+ android:scaleType="fitXY"
|
|
|
|
|
+ android:src="@mipmap/ic_change_one"
|
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
|
- android:background="@drawable/sp_rectangle_bg_gray_radius"
|
|
|
|
|
- android:padding="@dimen/content_padding_small"
|
|
|
|
|
- android:text="@string/tip_finish_task_in_time_or_repeat"
|
|
|
|
|
- android:textColor="@color/txt_black_8e8e8e"
|
|
|
|
|
- android:textSize="@dimen/text_size_10"
|
|
|
|
|
- android:visibility="gone" />
|
|
|
|
|
-
|
|
|
|
|
- <View
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="@dimen/content_padding_10" />
|
|
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/item_info_tv"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/item_info_tv" />
|
|
|
|
|
|
|
|
- <View
|
|
|
|
|
- android:id="@+id/line_tv"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="0.5dp"
|
|
|
|
|
- android:layout_marginStart="12dp"
|
|
|
|
|
- android:layout_marginEnd="12dp"
|
|
|
|
|
- android:background="@color/gray_F0F0F0" />
|
|
|
|
|
-</LinearLayout>
|
|
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/item_change_one_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="换一个"
|
|
|
|
|
+ android:textColor="#ff333333"
|
|
|
|
|
+ android:textSize="12sp"
|
|
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/item_info_tv"
|
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/item_change_one_iv"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/item_info_tv" />
|
|
|
|
|
+</android.support.constraint.ConstraintLayout>
|