<?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>
|