Administrator
2021-10-23 9c79b7ac3e4d97ef3bf3301ee1df760220db8ef4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/bg_border_gray_corner"
    android:layout_marginLeft="5dp"
    android:layout_marginTop="5dp"
    android:layout_marginRight="5dp"
    android:padding="10dp"
    tools:ignore="MissingConstraints">
 
    <TextView
        android:id="@+id/txt_type"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="TextView"
        android:textSize="13sp"
        android:textColor="@color/red"
        android:paddingLeft="8dp"
        android:paddingRight="8dp"
        android:paddingTop="3dp"
        android:paddingBottom="3dp"
        android:background="@drawable/bg_border_red_corner"
        tools:layout_editor_absoluteX="0dp"
        tools:layout_editor_absoluteY="4dp"
        tools:text="类型" />
 
    <TextView
        android:id="@+id/txt_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="4dp"
        android:text="任务标题\nl;ajsdlfkjalsjd"
        android:textColor="@color/black"
        android:layout_marginTop="10dp"
        app:layout_constraintTop_toBottomOf="@id/txt_type"
        tools:layout_editor_absoluteY="23dp" />
 
    <TextView
        android:id="@+id/txt_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/bg_red_corner"
        android:text="标签"
        android:textSize="10sp"
        android:textColor="@color/white"
        android:padding="3dp"
        android:layout_marginRight="10dp"
        app:layout_constraintBottom_toBottomOf="@id/txt_title"
        app:layout_constraintTop_toTopOf="@id/image_head"/>
 
    <TextView
        android:id="@+id/txt_detail"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="参与人数\n剩余数量"
        android:layout_marginTop="8dp"
        android:layout_marginLeft="10dp"
        app:layout_constraintLeft_toRightOf="@id/txt_label"
        app:layout_constraintTop_toBottomOf="@id/txt_title" />
 
    <ImageView
        android:id="@+id/image_head"
        android:layout_width="43dp"
        android:layout_height="32dp"
        android:scaleType="centerCrop"
        android:layout_marginTop="8dp"
        app:layout_constraintTop_toBottomOf="@id/txt_detail"
        tools:srcCompat="@tools:sample/avatars" />
 
    <TextView
        android:id="@+id/txt_price"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="TextView"
        android:layout_marginLeft="10dp"
        android:textColor="@color/red"
        app:layout_constraintLeft_toRightOf="@id/image_head"
        app:layout_constraintTop_toTopOf="@id/image_head"
        app:layout_constraintBottom_toBottomOf="@id/image_head"
        tools:text="+ 35.00元" />
 
</androidx.constraintlayout.widget.ConstraintLayout>