2026-04-27 18:37:06 +09:30
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 主页(ViewPager2 Page 1)
|
|
|
|
|
|
屏幕 240×284px, 密度 120dpi, 1dp=0.75px, 换算: px/0.75=dp
|
|
|
|
|
|
原型图 safe area: top20 left16 right16 bottom20 → dp: 27 21 21 27 -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:background="@color/background"
|
|
|
|
|
|
android:orientation="vertical"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:paddingBottom="27dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 时钟区域(flex:1 撑满中间) -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 时钟 52px → 69sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvClock"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="14:30"
|
|
|
|
|
|
android:textColor="@color/text_primary"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:textSize="69sp"
|
|
|
|
|
|
android:fontFamily="sans-serif-medium"
|
2026-04-27 19:17:59 +09:30
|
|
|
|
android:letterSpacing="0.02"
|
|
|
|
|
|
android:includeFontPadding="false" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 日期 15px → 20sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvDate"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="4月23日 周三"
|
|
|
|
|
|
android:textColor="@color/text_primary"
|
2026-04-27 19:37:20 +09:30
|
|
|
|
android:textSize="26sp"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
|
|
android:layout_marginTop="11dp" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 快捷区 gap:6px→8dp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 接单池(蓝色)padding top14→19, bottom12→16, radius14→19 -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:id="@+id/cardPool"
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_weight="1"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_marginEnd="4dp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:background="@drawable/bg_quick_blue"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:paddingTop="19dp"
|
|
|
|
|
|
android:paddingBottom="16dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 数字 32px → 43sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvPoolNum"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="0"
|
|
|
|
|
|
android:textColor="@color/primary"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:textSize="43sp"
|
2026-04-27 19:17:59 +09:30
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
|
android:includeFontPadding="false" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 标签 12px → 16sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<TextView
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="接单池"
|
|
|
|
|
|
android:textColor="@color/text_primary"
|
2026-04-27 19:17:59 +09:30
|
|
|
|
android:textSize="16sp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:textStyle="bold"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_marginTop="8dp" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 待打卡(橙色) -->
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:id="@+id/cardPunch"
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_weight="1"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
|
android:layout_marginEnd="4dp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:background="@drawable/bg_quick_orange"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:paddingTop="19dp"
|
|
|
|
|
|
android:paddingBottom="16dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvPunchNum"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="0"
|
|
|
|
|
|
android:textColor="@color/warning"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:textSize="43sp"
|
2026-04-27 19:17:59 +09:30
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
|
android:includeFontPadding="false" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="待打卡"
|
|
|
|
|
|
android:textColor="@color/text_primary"
|
2026-04-27 19:17:59 +09:30
|
|
|
|
android:textSize="16sp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:textStyle="bold"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_marginTop="8dp" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 待完成(绿色) -->
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:id="@+id/cardComplete"
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_weight="1"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_marginStart="4dp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:background="@drawable/bg_quick_green"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:paddingTop="19dp"
|
|
|
|
|
|
android:paddingBottom="16dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvCompleteNum"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="0"
|
|
|
|
|
|
android:textColor="@color/success"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:textSize="43sp"
|
2026-04-27 19:17:59 +09:30
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
|
android:includeFontPadding="false" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:text="待完成"
|
|
|
|
|
|
android:textColor="@color/text_primary"
|
2026-04-27 19:17:59 +09:30
|
|
|
|
android:textSize="16sp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:textStyle="bold"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_marginTop="8dp" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 页面指示器 margin-top:10px→13dp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:gravity="center"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:paddingTop="13dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
|
android:id="@+id/indMain0"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_width="7dp"
|
|
|
|
|
|
android:layout_height="7dp"
|
|
|
|
|
|
android:layout_marginEnd="7dp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:background="@drawable/indicator_dot_inactive" />
|
|
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
|
android:id="@+id/indMain1"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_width="19dp"
|
|
|
|
|
|
android:layout_height="7dp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:background="@drawable/indicator_dot_active" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|