style: 统一列表项 UI 规范(textSize/颜色/间距/checkbox 资源)
- 国际出/进港所有列表项 KV 文字统一为 15sp - 子列表 checkbox 资源由 _gray 系列改为 _style 系列 - 含子列表卡片 padding 统一为 10dp,展开按钮高度 18dp/padding 4dp - ULD 管理状态字段"正常"改用 text_green - 日志查询标签格式规范化(补冒号、修正 completeSpace) - 航班管理非到达航班文字颜色改为 text_gray,保留航班号 colorPrimary 及 +1 text_red Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
49
CLAUDE.md
49
CLAUDE.md
@@ -402,6 +402,55 @@ fun toggleAllExpand() {
|
||||
| `radiobtn_unchecked_style` | 未选中 | 透明 + 黑色边框圆 |
|
||||
| ~~`radiobtn_checked_gray`~~ | ❌ 禁用 | 灰色实心圆(错误样式) |
|
||||
|
||||
#### 含子列表的列表项 UI 规范(以 `item_int_exp_storage_use.xml` 为基准)
|
||||
|
||||
**主列表项卡片**:
|
||||
|
||||
| 部位 | 属性 | 标准值 |
|
||||
|------|------|--------|
|
||||
| 外层容器 | marginHorizontal / marginTop | 10dp / 10dp |
|
||||
| 卡片背景 | background | `@drawable/bg_white_radius_8` |
|
||||
| 内容区 | padding | **10dp** |
|
||||
| 选中图标 | 尺寸 / marginEnd | 40×40dp / 10dp |
|
||||
| 选中图标 | 切换资源 | `img_plane_s`(选中)/ `img_plane`(未选中)|
|
||||
| KV 文字 | textSize | **15sp**(Key 和 Value 均需显式设置)|
|
||||
| 首要字段值(运单号)| textColor | `@color/colorPrimary` |
|
||||
| 其他字段 | textColor | 无需设置(继承默认 text_normal)|
|
||||
| 两行间距 | layout_marginTop | 10dp |
|
||||
|
||||
**展开/折叠按钮(`iv_show`)**:
|
||||
|
||||
| 属性 | 标准值 |
|
||||
|------|--------|
|
||||
| layout_height | **18dp** |
|
||||
| padding | **4dp** |
|
||||
| layout_marginBottom | 5dp(**不设 marginTop**)|
|
||||
| src | `@mipmap/img_down` |
|
||||
| 显示控制 | `visible="@{bean.subList != null && !bean.subList.empty}"` |
|
||||
|
||||
**子列表区域**:
|
||||
|
||||
- 容器:`layout_marginTop="5dp"`,`background="#e3f6e0"`
|
||||
- 表头行:`layout_marginVertical="10dp"`,`paddingHorizontal="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"`
|
||||
|
||||
**子列表复选框(关键)**:
|
||||
|
||||
```xml
|
||||
<ImageView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0.5"
|
||||
loadImage="@{bean.checked.get() ? @drawable/radiobtn_checked_style : @drawable/radiobtn_unchecked_style}"
|
||||
android:src="@drawable/radiobtn_unchecked_style" />
|
||||
```
|
||||
|
||||
> `loadImage` 和 `android:src` **均须**使用 `_style` 系列,**禁止**使用 `_gray` 系列(参见上方复选框样式表)
|
||||
|
||||
**参考文件**: `module_gjc/.../IntExpStorageUseActivity.kt`、`IntExpStorageUseViewModel.kt`
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user