57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- 项目卡展开后的任务行:结构与任务列表一致,但不显示分类(项目名),
|
|
meta 改为「单轮时长 · 最近完成时间 · 累计完成次数」,右侧保留开始按钮。 -->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:paddingStart="18dp"
|
|
android:paddingEnd="10dp"
|
|
android:paddingTop="9dp"
|
|
android:paddingBottom="9dp">
|
|
|
|
<View
|
|
android:id="@+id/taskColorBar"
|
|
android:layout_width="3dp"
|
|
android:layout_height="30dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="11dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvTaskTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:textColor="@color/text"
|
|
android:maxLines="2"
|
|
android:ellipsize="end" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvTaskMeta"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="3dp"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
style="@style/T.Caption" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/btnTaskPlay"
|
|
android:layout_width="34dp"
|
|
android:layout_height="34dp"
|
|
android:layout_marginStart="6dp"
|
|
android:padding="9dp"
|
|
android:background="@drawable/bg_play_circle"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_play"
|
|
android:contentDescription="@string/start" />
|
|
</LinearLayout>
|