Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb3d961b0a | ||
|
|
9fdecfb1b9 |
@@ -1,5 +1,12 @@
|
||||
# 变更记录
|
||||
|
||||
## 2026-11-30 · 回退字体改动,删除横屏分割线(v2.9)
|
||||
|
||||
- v2.8 打包字体在鸿蒙锁屏/悬浮窗上渲染异常(时间乱铺),按用户要求回退并移除分割线。
|
||||
- layout-land 从 v2.3 提交恢复后仅删除中列(锚点+分割线+占位),删除 res/font;其余代码与 v2.3 一致。
|
||||
- 最终形态:横屏左右两栏各半、时间居中、无分割线;竖屏不变。
|
||||
- versionCode 53 / versionName 2.9,签名不变(7bcbd511…cc8c83),覆盖安装,无数据迁移。
|
||||
|
||||
## 2026-11-30 · 横屏大时间换用 Source Code Pro Bold,修分割线左右间隙不等(v2.8)
|
||||
|
||||
- 诊断(基于用户 4 张锁屏照片的程序实测):右间距恒 36px、左间距 20~27px 随秒数变化;数字 advance 等宽(≈95px)但"1"墨迹仅 65px → 系统字体墨迹边距不均;分割线在 advance 中点,布局本身对称无问题。间隙差来自字形墨迹:右钟以"0"开头(墨迹内缩)、左倒计时以 7/3/4/8 结尾(墨迹顶边)。
|
||||
|
||||
@@ -539,6 +539,6 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val VERSION = "2.8"
|
||||
const val VERSION = "2.9"
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -39,7 +39,6 @@
|
||||
android:id="@+id/tvLockCountdown"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/sourcecodepro_bold"
|
||||
android:includeFontPadding="false"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="130sp"
|
||||
@@ -57,50 +56,7 @@
|
||||
android:textSize="15sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 中:细分隔线(92dp≈130sp 粗体数字的字面高度 0.71em×130,与时间视觉等高)
|
||||
v2.3 中列完整镜像左右两栏:上方 1dp FrameLayout 内放与时间同规格的 130sp
|
||||
不可见锚点文字(maxLines=1,防止 1dp 宽度触发折行撑高),分割线在其中
|
||||
center;下方补一段与侧栏小字同规格(15sp、marginTop 10dp)的不可见占位,
|
||||
使中列总高与左右两栏一致。三列同高且都被 center_vertical 居中 → 同顶,
|
||||
锚点中心严格等于时间文字中心。(v2.2 只放了锚点没补占位,中列比侧栏矮
|
||||
一截,居中后中心仍落在屏幕中心,与旧版位置相同,故无效) -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/sourcecodepro_bold"
|
||||
android:includeFontPadding="false"
|
||||
android:maxLines="1"
|
||||
android:visibility="invisible"
|
||||
android:text="00:00"
|
||||
android:textSize="130sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:id="@+id/lockDivider"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="92dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="#26FFFFFF" />
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:maxLines="1"
|
||||
android:visibility="invisible"
|
||||
android:text="0"
|
||||
android:textSize="15sp" />
|
||||
</LinearLayout>
|
||||
<!-- 中列分割线已按用户要求移除(v2.9):左右两栏各占一半宽度,文字各自居中 -->
|
||||
|
||||
<!-- 右:时钟(大)+ 日期星期在时钟下面 -->
|
||||
<LinearLayout
|
||||
@@ -114,7 +70,6 @@
|
||||
android:id="@+id/tvLockClock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/sourcecodepro_bold"
|
||||
android:includeFontPadding="false"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="130sp"
|
||||
|
||||
Reference in New Issue
Block a user