diff --git a/CLAUDE.md b/CLAUDE.md index 0d7eb39..946682c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -411,7 +411,7 @@ fun toggleAllExpand() { | 外层容器 | marginHorizontal / marginTop | 10dp / 10dp | | 卡片背景 | background | `@drawable/bg_white_radius_8` | | 内容区 | padding | **10dp** | -| 选中图标 | 尺寸 / marginEnd | 40×40dp / 10dp | +| 选中图标 | 尺寸 / marginEnd / marginTop | 40×40dp / 10dp / **0.5px**(像素级对齐)| | 选中图标 | 切换资源 | `img_plane_s`(选中)/ `img_plane`(未选中)| | KV 文字 | textSize | **15sp**(Key 和 Value 均需显式设置)| | 首要字段值(运单号)| textColor | `@color/colorPrimary` | @@ -422,11 +422,15 @@ fun toggleAllExpand() { | 属性 | 标准值 | |------|--------| -| layout_height | **18dp** | -| padding | **4dp** | -| layout_marginBottom | 5dp(**不设 marginTop**)| +| layout_width | `match_parent` | +| layout_height | **10dp** | +| layout_marginTop | **-10dp**(向上收紧,紧贴卡片底边)| +| scaleType | **centerInside**(保证箭头不被压扁/截断)| | 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`)。 **子列表区域**: diff --git a/module_gjc/src/main/res/layout/item_int_exp_arrive.xml b/module_gjc/src/main/res/layout/item_int_exp_arrive.xml index f027961..e232c74 100644 --- a/module_gjc/src/main/res/layout/item_int_exp_arrive.xml +++ b/module_gjc/src/main/res/layout/item_int_exp_arrive.xml @@ -33,313 +33,314 @@ + android:padding="10dp"> - - + + - - - - - - - - - - - - - - - - + + android:orientation="vertical"> - + + android:gravity="center_vertical" + android:orientation="horizontal"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:layout_marginTop="10dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:layout_height="10dp" + android:layout_marginTop="-10dp" + android:scaleType="centerInside" + android:src="@mipmap/img_down" /> @@ -358,8 +359,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginVertical="10dp" - android:paddingHorizontal="10dp" - android:orientation="horizontal"> + android:orientation="horizontal" + android:paddingHorizontal="10dp"> @@ -337,10 +338,10 @@ diff --git a/module_gjc/src/main/res/layout/item_int_exp_storage_use.xml b/module_gjc/src/main/res/layout/item_int_exp_storage_use.xml index db788a5..bb1ac2f 100644 --- a/module_gjc/src/main/res/layout/item_int_exp_storage_use.xml +++ b/module_gjc/src/main/res/layout/item_int_exp_storage_use.xml @@ -44,6 +44,7 @@ android:id="@+id/iv_icon" android:layout_width="40dp" android:layout_height="40dp" + android:layout_marginTop="0.5px" android:layout_marginEnd="10dp" loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}" android:src="@drawable/img_plane" /> @@ -302,12 +303,12 @@ + android:layout_height="10dp" + android:layout_marginTop="-10dp" + android:scaleType="centerInside" + android:src="@mipmap/img_down" /> diff --git a/module_gjc/src/main/res/layout/item_int_exp_tally.xml b/module_gjc/src/main/res/layout/item_int_exp_tally.xml index bad14dc..38b8242 100644 --- a/module_gjc/src/main/res/layout/item_int_exp_tally.xml +++ b/module_gjc/src/main/res/layout/item_int_exp_tally.xml @@ -12,7 +12,7 @@ - + @@ -76,12 +76,12 @@ + android:layout_height="10dp" + android:layout_marginTop="-10dp" + android:scaleType="centerInside" + android:src="@mipmap/img_down" /> diff --git a/module_gjj/src/main/res/layout/item_gjj_manifest.xml b/module_gjj/src/main/res/layout/item_gjj_manifest.xml index c15712c..696ff05 100644 --- a/module_gjj/src/main/res/layout/item_gjj_manifest.xml +++ b/module_gjj/src/main/res/layout/item_gjj_manifest.xml @@ -41,6 +41,7 @@ loadImage="@{bean.checked ? @drawable/img_plane_s : @drawable/img_plane}" android:layout_width="40dp" android:layout_height="40dp" + android:layout_marginTop="0.5px" android:layout_gravity="center" android:src="@drawable/img_plane" /> @@ -265,9 +266,9 @@ diff --git a/module_gjj/src/main/res/layout/item_int_arr_air_manifest.xml b/module_gjj/src/main/res/layout/item_int_arr_air_manifest.xml index d067f9a..9539265 100644 --- a/module_gjj/src/main/res/layout/item_int_arr_air_manifest.xml +++ b/module_gjj/src/main/res/layout/item_int_arr_air_manifest.xml @@ -47,6 +47,7 @@ android:id="@+id/iv_icon" android:layout_width="40dp" android:layout_height="40dp" + android:layout_marginTop="0.5px" android:layout_gravity="center" loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}" android:src="@drawable/img_plane" /> @@ -311,12 +312,12 @@ + android:layout_height="10dp" + android:layout_marginTop="-10dp" + android:scaleType="centerInside" + android:src="@mipmap/img_down" /> diff --git a/module_gjj/src/main/res/layout/item_int_imp_manifest.xml b/module_gjj/src/main/res/layout/item_int_imp_manifest.xml index f25d5b9..134bd6d 100644 --- a/module_gjj/src/main/res/layout/item_int_imp_manifest.xml +++ b/module_gjj/src/main/res/layout/item_int_imp_manifest.xml @@ -50,6 +50,7 @@ android:id="@+id/iv_icon" android:layout_width="40dp" android:layout_height="40dp" + android:layout_marginTop="0.5px" android:layout_gravity="center" loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}" android:src="@drawable/img_plane" /> @@ -315,9 +316,9 @@ diff --git a/module_gjj/src/main/res/layout/item_int_imp_storage_use.xml b/module_gjj/src/main/res/layout/item_int_imp_storage_use.xml index ad12ed2..1ae5127 100644 --- a/module_gjj/src/main/res/layout/item_int_imp_storage_use.xml +++ b/module_gjj/src/main/res/layout/item_int_imp_storage_use.xml @@ -45,6 +45,7 @@ loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}" android:layout_width="40dp" android:layout_height="40dp" + android:layout_marginTop="0.5px" android:layout_marginEnd="10dp" android:src="@drawable/img_plane" /> @@ -305,9 +306,9 @@ android:id="@+id/iv_show" visible="@{bean.storageUseList != null && !bean.storageUseList.empty}" android:layout_width="match_parent" - android:layout_height="18dp" - android:layout_marginBottom="5dp" - android:padding="4dp" + android:layout_height="10dp" + android:layout_marginTop="-10dp" + android:scaleType="centerInside" android:src="@mipmap/img_down" /> diff --git a/module_gjj/src/main/res/layout/item_int_imp_tally.xml b/module_gjj/src/main/res/layout/item_int_imp_tally.xml index 63c5b79..5fa4a96 100644 --- a/module_gjj/src/main/res/layout/item_int_imp_tally.xml +++ b/module_gjj/src/main/res/layout/item_int_imp_tally.xml @@ -45,6 +45,7 @@ android:id="@+id/iv_icon" android:layout_width="40dp" android:layout_height="40dp" + android:layout_marginTop="0.5px" android:layout_gravity="center" loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}" android:src="@drawable/img_plane" /> @@ -324,9 +325,9 @@