style: 统一国际出港/进港列表项展开按钮尺寸
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
12
CLAUDE.md
12
CLAUDE.md
@@ -411,7 +411,7 @@ fun toggleAllExpand() {
|
|||||||
| 外层容器 | marginHorizontal / marginTop | 10dp / 10dp |
|
| 外层容器 | marginHorizontal / marginTop | 10dp / 10dp |
|
||||||
| 卡片背景 | background | `@drawable/bg_white_radius_8` |
|
| 卡片背景 | background | `@drawable/bg_white_radius_8` |
|
||||||
| 内容区 | padding | **10dp** |
|
| 内容区 | padding | **10dp** |
|
||||||
| 选中图标 | 尺寸 / marginEnd | 40×40dp / 10dp |
|
| 选中图标 | 尺寸 / marginEnd / marginTop | 40×40dp / 10dp / **0.5px**(像素级对齐)|
|
||||||
| 选中图标 | 切换资源 | `img_plane_s`(选中)/ `img_plane`(未选中)|
|
| 选中图标 | 切换资源 | `img_plane_s`(选中)/ `img_plane`(未选中)|
|
||||||
| KV 文字 | textSize | **15sp**(Key 和 Value 均需显式设置)|
|
| KV 文字 | textSize | **15sp**(Key 和 Value 均需显式设置)|
|
||||||
| 首要字段值(运单号)| textColor | `@color/colorPrimary` |
|
| 首要字段值(运单号)| textColor | `@color/colorPrimary` |
|
||||||
@@ -422,11 +422,15 @@ fun toggleAllExpand() {
|
|||||||
|
|
||||||
| 属性 | 标准值 |
|
| 属性 | 标准值 |
|
||||||
|------|--------|
|
|------|--------|
|
||||||
| layout_height | **18dp** |
|
| layout_width | `match_parent` |
|
||||||
| padding | **4dp** |
|
| layout_height | **10dp** |
|
||||||
| layout_marginBottom | 5dp(**不设 marginTop**)|
|
| layout_marginTop | **-10dp**(向上收紧,紧贴卡片底边)|
|
||||||
|
| scaleType | **centerInside**(保证箭头不被压扁/截断)|
|
||||||
| src | `@mipmap/img_down` |
|
| src | `@mipmap/img_down` |
|
||||||
| 显示控制 | `visible="@{bean.subList != null && !bean.subList.empty}"` |
|
| 显示控制 | `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`)。
|
||||||
|
|
||||||
**子列表区域**:
|
**子列表区域**:
|
||||||
|
|
||||||
|
|||||||
@@ -33,17 +33,18 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:padding="10dp"
|
android:padding="10dp">
|
||||||
android:gravity="center_vertical">
|
|
||||||
|
|
||||||
<!-- 选中图标 (飞机图标,根据选择状态切换图片) -->
|
<!-- 选中图标 (飞机图标,根据选择状态切换图片) -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_icon"
|
android:id="@+id/iv_icon"
|
||||||
|
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
|
|
||||||
<!-- 运单信息区域 -->
|
<!-- 运单信息区域 -->
|
||||||
@@ -70,9 +71,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{4}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{4}"
|
|
||||||
android:text="运单号:"
|
android:text="运单号:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -96,9 +97,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{5}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{5}"
|
|
||||||
android:text="状态:"
|
android:text="状态:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -121,9 +122,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{5}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{5}"
|
|
||||||
android:text="代理:"
|
android:text="代理:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -131,11 +132,11 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@{bean.agentName}"
|
android:ellipsize="end"
|
||||||
android:textColor="@color/text_normal"
|
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:ellipsize="end"
|
android:text="@{bean.agentName}"
|
||||||
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -149,9 +150,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{5}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{5}"
|
|
||||||
android:text="件数:"
|
android:text="件数:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -174,9 +175,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{4}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{4}"
|
|
||||||
android:text="重量:"
|
android:text="重量:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -209,9 +210,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{4}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{4}"
|
|
||||||
android:text="航程:"
|
android:text="航程:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -234,9 +235,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{5}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{5}"
|
|
||||||
android:text="计重状态:"
|
android:text="计重状态:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -259,9 +260,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{5}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{5}"
|
|
||||||
android:text="运抵状态:"
|
android:text="运抵状态:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -284,9 +285,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{5}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{5}"
|
|
||||||
android:text="运单类型:"
|
android:text="运单类型:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -309,9 +310,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
completeSpace="@{4}"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
completeSpace="@{4}"
|
|
||||||
android:text="分单数:"
|
android:text="分单数:"
|
||||||
android:textColor="@color/text_normal"
|
android:textColor="@color/text_normal"
|
||||||
android:textSize="15sp" />
|
android:textSize="15sp" />
|
||||||
@@ -334,12 +335,12 @@
|
|||||||
<!-- 展开按钮 -->
|
<!-- 展开按钮 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
|
visible="@{bean.haWbList != null && !bean.haWbList.empty}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down"
|
android:src="@mipmap/img_down" />
|
||||||
visible="@{bean.haWbList != null && !bean.haWbList.empty}" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@@ -358,8 +359,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="10dp"
|
android:layout_marginVertical="10dp"
|
||||||
android:paddingHorizontal="10dp"
|
android:orientation="horizontal"
|
||||||
android:orientation="horizontal">
|
android:paddingHorizontal="10dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
android:id="@+id/iv_icon"
|
android:id="@+id/iv_icon"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
@@ -337,10 +338,10 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
|
||||||
android:rotation="@{bean.showMore.get() ? 180f : 0f}"
|
android:rotation="@{bean.showMore.get() ? 180f : 0f}"
|
||||||
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down" />
|
android:src="@mipmap/img_down" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
android:id="@+id/iv_icon"
|
android:id="@+id/iv_icon"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
@@ -302,12 +303,12 @@
|
|||||||
<!-- 展开/折叠按钮 -->
|
<!-- 展开/折叠按钮 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
|
visible="@{bean.storageUseList != null && !bean.storageUseList.empty}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down"
|
android:src="@mipmap/img_down" />
|
||||||
visible="@{bean.storageUseList != null && !bean.storageUseList.empty}" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<!-- 主要内容区域 -->
|
<!-- 主要内容区域 -->
|
||||||
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal" android:padding="10dp">
|
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal" android:padding="10dp">
|
||||||
<!-- 选中图标 -->
|
<!-- 选中图标 -->
|
||||||
<ImageView android:id="@+id/iv_icon" android:layout_width="40dp" android:layout_height="40dp" android:layout_marginEnd="10dp" loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}" android:src="@drawable/img_plane"/>
|
<ImageView 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"/>
|
||||||
<!-- 数据展示区域 -->
|
<!-- 数据展示区域 -->
|
||||||
<LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical">
|
<LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical">
|
||||||
<!-- 第一行:运单号、状态、代理、件数、重量 -->
|
<!-- 第一行:运单号、状态、代理、件数、重量 -->
|
||||||
@@ -76,12 +76,12 @@
|
|||||||
<!-- 展开/折叠按钮 -->
|
<!-- 展开/折叠按钮 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
|
visible="@{bean.haWbList != null && !bean.haWbList.empty}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down"
|
android:src="@mipmap/img_down" />
|
||||||
visible="@{bean.haWbList != null && !bean.haWbList.empty}" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<!-- 子订单列表容器(在白色卡片外面) -->
|
<!-- 子订单列表容器(在白色卡片外面) -->
|
||||||
<LinearLayout visible="@{bean.showMore}" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:background="#e3f6e0" android:orientation="vertical" android:visibility="gone">
|
<LinearLayout visible="@{bean.showMore}" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:background="#e3f6e0" android:orientation="vertical" android:visibility="gone">
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
loadImage="@{bean.checked ? @drawable/img_plane_s : @drawable/img_plane}"
|
loadImage="@{bean.checked ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
|
|
||||||
@@ -265,9 +266,9 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down" />
|
android:src="@mipmap/img_down" />
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
android:id="@+id/iv_icon"
|
android:id="@+id/iv_icon"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
@@ -311,12 +312,12 @@
|
|||||||
<!-- 展开/折叠按钮(卡片内部底部) -->
|
<!-- 展开/折叠按钮(卡片内部底部) -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
|
visible="@{bean.haWbList != null && !bean.haWbList.empty}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down"
|
android:src="@mipmap/img_down" />
|
||||||
visible="@{bean.haWbList != null && !bean.haWbList.empty}" />
|
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
android:id="@+id/iv_icon"
|
android:id="@+id/iv_icon"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
@@ -315,9 +316,9 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down" />
|
android:src="@mipmap/img_down" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
|
|
||||||
@@ -305,9 +306,9 @@
|
|||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
visible="@{bean.storageUseList != null && !bean.storageUseList.empty}"
|
visible="@{bean.storageUseList != null && !bean.storageUseList.empty}"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down" />
|
android:src="@mipmap/img_down" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
android:id="@+id/iv_icon"
|
android:id="@+id/iv_icon"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="40dp"
|
android:layout_height="40dp"
|
||||||
|
android:layout_marginTop="0.5px"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
loadImage="@{bean.checked.get() ? @drawable/img_plane_s : @drawable/img_plane}"
|
||||||
android:src="@drawable/img_plane" />
|
android:src="@drawable/img_plane" />
|
||||||
@@ -324,9 +325,9 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_show"
|
android:id="@+id/iv_show"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="18dp"
|
android:layout_height="10dp"
|
||||||
android:layout_marginBottom="5dp"
|
android:layout_marginTop="-10dp"
|
||||||
android:padding="4dp"
|
android:scaleType="centerInside"
|
||||||
android:src="@mipmap/img_down" />
|
android:src="@mipmap/img_down" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user