首页任务选择改为两步式圆角弹层;新增按钮深色高对比;统计目标文案与热力图自适应

This commit is contained in:
XIGE
2026-11-28 07:29:37 +08:00
parent d57de2d3f5
commit ec21b3cc0a
14 changed files with 330 additions and 40 deletions

View File

@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/bg_sheet">
<!-- 拖拽把手:提示这是可下滑关闭的底部弹层 -->
<View
android:layout_width="36dp"
android:layout_height="4dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:background="@color/divider" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:paddingTop="14dp"
android:paddingBottom="22dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<ImageView
android:id="@+id/pickBack"
android:layout_width="34dp"
android:layout_height="34dp"
android:background="@drawable/bg_icon_btn"
android:padding="8dp"
android:src="@drawable/ic_back"
android:tint="@color/text_secondary"
android:contentDescription="@string/pick_back" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="10dp"
android:orientation="vertical">
<TextView
android:id="@+id/pickTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pick_project"
style="@style/T.Title" />
<TextView
android:id="@+id/pickStep"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
style="@style/T.Caption" />
</LinearLayout>
<ImageView
android:id="@+id/pickClose"
android:layout_width="34dp"
android:layout_height="34dp"
android:background="@drawable/bg_icon_btn"
android:padding="8dp"
android:src="@drawable/ic_close"
android:tint="@color/text_secondary"
android:contentDescription="@string/cancel" />
</LinearLayout>
<TextView
android:id="@+id/pickHint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
style="@style/T.Meta" />
<ScrollView
android:id="@+id/pickScroll"
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_marginTop="10dp"
android:clipToPadding="false"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:scrollbars="none">
<LinearLayout
android:id="@+id/pickList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
<TextView
android:id="@+id/pickClear"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="6dp"
android:background="@drawable/bg_btn_ghost"
android:gravity="center"
android:text="@string/clear_task"
android:textSize="14sp"
android:textColor="@color/text_secondary"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>