refactor(ui): 提取 WeightUtil.getStateStr 统一秤状态文案,量程溢出时红色背景提示

This commit is contained in:
2026-05-19 15:25:03 +08:00
parent f3dbb3fe68
commit 1140d6bf91
6 changed files with 88 additions and 70 deletions
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 秤格子背景:量程溢出状态,红色底 + 圆角 -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#E53935" />
<corners android:radius="8dp" />
</shape>