79 lines
2.7 KiB
XML
79 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
锁屏全屏倒计时·横屏专属排版(区别于竖屏的纯纵向堆叠):
|
||
左右对称分栏 —— 左侧倒计时(大)+ 任务名,右侧时钟(大)+ 日期星期,
|
||
两侧主字号统一 96sp,视觉左右对应;无「工作中/休息中」提示。
|
||
-->
|
||
<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">
|
||
|
||
<!-- 左:倒计时 + 任务名 -->
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
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"
|
||
android:textSize="130sp"
|
||
android:textStyle="bold" />
|
||
|
||
<TextView
|
||
android:id="@+id/tvLockTask"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="10dp"
|
||
android:ellipsize="end"
|
||
android:maxWidth="320dp"
|
||
android:maxLines="1"
|
||
android:textColor="#99FFFFFF"
|
||
android:textSize="15sp" />
|
||
</LinearLayout>
|
||
|
||
<!-- 中:细分隔线 -->
|
||
<View
|
||
android:layout_width="1dp"
|
||
android:layout_height="180dp"
|
||
android:background="#26FFFFFF" />
|
||
|
||
<!-- 右:时钟(大)+ 日期星期在时钟下面 -->
|
||
<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"
|
||
android:textColor="#FFFFFF"
|
||
android:textSize="130sp"
|
||
android:textStyle="bold" />
|
||
|
||
<TextView
|
||
android:id="@+id/tvLockDate"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="10dp"
|
||
android:textColor="#99FFFFFF"
|
||
android:textSize="15sp" />
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|