2026-11-29 13:54:10 +08:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
<!--
|
|
|
|
|
|
锁屏全屏倒计时·横屏专属排版(区别于竖屏的纯纵向堆叠):
|
2026-11-29 14:20:09 +08:00
|
|
|
|
左右对称分栏 —— 左侧倒计时(大)+ 任务名,右侧时钟(大)+ 日期星期,
|
|
|
|
|
|
两侧主字号统一 96sp,视觉左右对应;无「工作中/休息中」提示。
|
2026-11-29 13:54:10 +08:00
|
|
|
|
-->
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
android:id="@+id/lockRoot"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:background="@android:color/black"
|
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
2026-11-29 14:20:09 +08:00
|
|
|
|
<!-- 左:倒计时 + 任务名 -->
|
2026-11-29 13:54:10 +08:00
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-11-29 14:20:09 +08:00
|
|
|
|
android:layout_weight="1"
|
2026-11-29 13:54:10 +08:00
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvLockCountdown"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
|
|
android:textColor="#FFFFFF"
|
2026-11-29 14:20:09 +08:00
|
|
|
|
android:textSize="96sp"
|
2026-11-29 13:54:10 +08:00
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvLockTask"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-11-29 14:20:09 +08:00
|
|
|
|
android:layout_marginTop="20dp"
|
2026-11-29 13:54:10 +08:00
|
|
|
|
android:ellipsize="end"
|
2026-11-29 14:20:09 +08:00
|
|
|
|
android:maxWidth="320dp"
|
2026-11-29 13:54:10 +08:00
|
|
|
|
android:maxLines="1"
|
|
|
|
|
|
android:textColor="#CCFFFFFF"
|
|
|
|
|
|
android:textSize="17sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 中:细分隔线 -->
|
|
|
|
|
|
<View
|
|
|
|
|
|
android:layout_width="1dp"
|
|
|
|
|
|
android:layout_height="180dp"
|
|
|
|
|
|
android:background="#26FFFFFF" />
|
|
|
|
|
|
|
2026-11-29 14:20:09 +08:00
|
|
|
|
<!-- 右:时钟(大)+ 日期星期在时钟下面 -->
|
2026-11-29 13:54:10 +08:00
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvLockClock"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:includeFontPadding="false"
|
2026-11-29 14:20:09 +08:00
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
|
|
android:textSize="96sp"
|
2026-11-29 13:54:10 +08:00
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
2026-11-29 14:20:09 +08:00
|
|
|
|
android:id="@+id/tvLockDate"
|
2026-11-29 13:54:10 +08:00
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-11-29 14:20:09 +08:00
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
|
android:letterSpacing="0.08"
|
|
|
|
|
|
android:textColor="#99FFFFFF"
|
|
|
|
|
|
android:textSize="15sp" />
|
2026-11-29 13:54:10 +08:00
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|