66 lines
2.1 KiB
XML
66 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
|
<!-- 任务卡片(RecyclerView item)
|
|||
|
|
显示:任务名 + 地点 + 时间 + 积分 + 状态标签 -->
|
|||
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:background="@drawable/bg_seg_active"
|
|||
|
|
android:orientation="vertical"
|
|||
|
|
android:padding="16dp"
|
|||
|
|
android:layout_marginBottom="11dp">
|
|||
|
|
|
|||
|
|
<!-- 任务名(大字) -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvTaskName"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textColor="@color/text_primary"
|
|||
|
|
android:textSize="20sp"
|
|||
|
|
android:textStyle="bold"
|
|||
|
|
android:maxLines="1"
|
|||
|
|
android:ellipsize="end" />
|
|||
|
|
|
|||
|
|
<!-- 地点 + 时间 -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvTaskSub"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textColor="@color/text_secondary"
|
|||
|
|
android:textSize="16sp"
|
|||
|
|
android:lineSpacingMultiplier="1.7"
|
|||
|
|
android:layout_marginTop="8dp" />
|
|||
|
|
|
|||
|
|
<!-- 积分 + 状态标签 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:gravity="center_vertical"
|
|||
|
|
android:orientation="horizontal"
|
|||
|
|
android:layout_marginTop="8dp">
|
|||
|
|
|
|||
|
|
<!-- 积分 -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvPoints"
|
|||
|
|
android:layout_width="0dp"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_weight="1"
|
|||
|
|
android:textColor="@color/warning"
|
|||
|
|
android:textSize="19sp"
|
|||
|
|
android:textStyle="bold" />
|
|||
|
|
|
|||
|
|
<!-- 状态标签 -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvStatus"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:paddingStart="13dp"
|
|||
|
|
android:paddingEnd="13dp"
|
|||
|
|
android:paddingTop="4dp"
|
|||
|
|
android:paddingBottom="4dp"
|
|||
|
|
android:textSize="15sp"
|
|||
|
|
android:textStyle="bold" />
|
|||
|
|
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
</LinearLayout>
|