style: 国际出港/进港列表项文字样式统一为四个基准页规范

主题未覆盖 textViewStyle,旧列表项未显式写 textColor 导致文字发灰、
字号与卡片边距不一。以出港运抵/组装/装载/理货为基准统一:
- Key/Value 显式 15sp + text_normal,首要字段 colorPrimary 加粗,
  状态值 14sp 带颜色表达式
- 卡片外边距 10dp/10dp,bg_item 统一为 bg_white_radius_8,
  图标与内容区间距 15dp
- 原始舱单子列表改为标准白卡片 + 表头底色,查询详情表格改用 text_normal
- 修复出港查询布局 xmlns:tools 误绑 android 命名空间
- CLAUDE.md 列表项规范表同步更新为基准页真实数值

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 11:52:36 +08:00
parent 8853405ffc
commit 74cf1346a6
27 changed files with 823 additions and 465 deletions

View File

@@ -402,44 +402,50 @@ fun toggleAllExpand() {
| `radiobtn_unchecked_style` | 未选中 | 透明 + 黑色边框圆 |
| ~~`radiobtn_checked_gray`~~ | ❌ 禁用 | 灰色实心圆(错误样式) |
#### 含子列表的列表项 UI 规范(以 `item_int_exp_storage_use.xml` 为基准)
#### 列表项 UI 规范(以 `item_int_exp_arrive / assemble / load / tally.xml` 四个基准页为准)
> 应用主题未覆盖 `textViewStyle`,未显式写 `textSize``textColor` 的 TextView 会落到系统默认14sp、偏灰的次级文字色。因此列表项里**每个** KeyValue TextView 都必须显式写 `textSize` 和 `textColor`,不能依赖“默认继承”。
**主列表项卡片**
| 部位 | 属性 | 标准值 |
|------|------|--------|
| 外层容器 | marginHorizontal / marginTop | 10dp / 10dp |
| 卡片背景 | background | `@drawable/bg_white_radius_8` |
| 内容区 | padding | **10dp** |
| 选中图标 | 尺寸 / marginEnd / marginTop | 40×40dp / 10dp / **0.5px**(像素级对齐)|
| 外层容器 | marginHorizontal / marginTop | 10dp / 10dp(禁止旧写法 `marginHorizontal=15dp` + `marginVertical=5dp`|
| 卡片背景 | background | `@drawable/bg_white_radius_8``bg_item` 已废弃,不再引用)|
| 内容区 | paddingHorizontal / paddingVertical / gravity | **10dp / 20dp** / `center_vertical` |
| 选中图标 | 尺寸 / marginTop | 40×40dp / **0.5px**(像素级对齐),不设 marginEnd |
| 内容列(图标右侧的竖向 LinearLayout| layout_marginLeft | **15dp** |
| 选中图标 | 切换资源 | `img_plane_s`(选中)/ `img_plane`(未选中)|
| KV 文字 | textSize | **15sp**Key 和 Value 均需显式设置)|
| 首要字段值(运单号)| textColor | `@color/colorPrimary` |
| 其他字段 | textColor | 无需设置(继承默认 text_normal|
| KV 文字 | textSize / textColor | **15sp** / **`@color/text_normal`**Key 和 Value 均需显式设置)|
| 首要字段值(运单号ULD编码| textColor / textStyle | `@color/colorPrimary` / **`bold`** |
| 状态类字段值(带颜色表达式)| textSize | **14sp** + 颜色表达式(如 `text_green / colorPrimary / text_gray`|
| 两行间距 | layout_marginTop | 10dp |
| 右侧箭头(有详情页时)| `img_pda_right` | 30×30dp`layout_marginLeft=10dp` |
**展开/折叠按钮(`iv_show`**
| 属性 | 标准值 |
|------|--------|
| layout_width | `match_parent` |
| layout_height | **10dp** |
| layout_marginTop | **-10dp**(向上收紧,紧贴卡片底边)|
| scaleType | **centerInside**(保证箭头不被压扁/截断)|
| layout_height | **20dp** |
| layout_marginTop | **-20dp**(向上收紧,紧贴卡片底边)|
| scaleType | **center** |
| src | `@mipmap/img_down` |
| 显示控制 | `visible="@{bean.subList != null && !bean.subList.empty}"` |
| 不设 padding不设 layout_marginBottom | — |
> 旧版本18dp + padding=4dp + marginBottom=5dp已统一替换为上述新标准参考 `item_int_exp_arrive.xml`。组装类列表若需展开后翻转箭头,附加 `android:rotation="@{bean.showMore.get() ? 180f : 0f}"`(参考 `item_int_exp_assemble.xml`)。
> 旧版本18dp + padding=4dp + marginBottom=5dp,以及 10dp/-10dp/centerInside)已统一替换为上述新标准,参考 `item_int_exp_arrive.xml`。组装类列表若需展开后翻转箭头,附加 `android:rotation="@{bean.showMore.get() ? 180f : 0f}"`(参考 `item_int_exp_assemble.xml`)。
**子列表区域**
- 容器:`layout_marginTop="5dp"``background="#e3f6e0"`
- 表头行:`layout_marginVertical="10dp"``paddingHorizontal="10dp"`
- 容器:`layout_marginTop="10dp"``background="@drawable/bg_white_radius_8"`(旧的 `#e3f6e0` 绿色容器已废弃)
- 空提示:`textSize="14sp"``textColor="@color/text_gray"``paddingVertical="15dp"`
- 表头行:`background="@drawable/bg_arrive_sub_header"``paddingHorizontal="10dp"``paddingVertical="10dp"`
- 表头文字:`textSize="14sp"``textColor="@color/text_normal"``textStyle="bold"``gravity="center"`
- 表头下方分隔线:`MaterialDivider` 高度 1px`background="@color/c999999"`
- 子列表项 padding`paddingHorizontal="10dp"``paddingVertical="8dp"`
- 子列表文字:`textSize="14sp"``textColor="@color/text_normal"``gravity="center"``layout_gravity="center_vertical"`
- 表头下方分隔线:`MaterialDivider` 高度 1px`dividerColor="@color/sub_list_divider"`
- 子列表项`layout_marginVertical="8dp"``paddingHorizontal="10dp"`
- 子列表文字:`textSize="14sp"``textColor="@color/text_normal"``gravity="center"``layout_gravity="center_vertical"`;首要列(运单号/分单号)`@color/colorPrimary` + `bold`;状态列 `13sp` + 颜色表达式
- 详情页里的表格式列表(如查询详情的库位/仓库 Tab同样 14sp + `text_normal`,禁止 `@android:color/black`
**子列表复选框(关键)**