diff --git a/module_gjc/src/main/java/com/lukouguoji/gjc/holder/IntExpArriveViewHolder.kt b/module_gjc/src/main/java/com/lukouguoji/gjc/holder/IntExpArriveViewHolder.kt
index 3d57bdd..b1a9ac4 100644
--- a/module_gjc/src/main/java/com/lukouguoji/gjc/holder/IntExpArriveViewHolder.kt
+++ b/module_gjc/src/main/java/com/lukouguoji/gjc/holder/IntExpArriveViewHolder.kt
@@ -1,9 +1,12 @@
package com.lukouguoji.gjc.holder
import android.view.View
+import com.lukouguoji.gjc.R
import com.lukouguoji.gjc.databinding.ItemIntExpArriveBinding
+import com.lukouguoji.module_base.adapter.setCommonAdapter
import com.lukouguoji.module_base.base.BaseViewHolder
import com.lukouguoji.module_base.bean.GjcMaWb
+import com.lukouguoji.module_base.ktx.refresh
/**
* 国际出港-出港运抵 列表项ViewHolder
@@ -25,5 +28,20 @@ class IntExpArriveViewHolder(view: View) :
// 立即更新UI(图片自动切换)
binding.executePendingBindings()
}
+
+ // ========== 展开按钮点击事件 ==========
+ binding.ivShow.setOnClickListener {
+ bean.showMore.set(!bean.showMore.get())
+ }
+
+ // ========== 初始化子列表 RecyclerView ==========
+ setCommonAdapter(
+ binding.rvSub,
+ IntExpTallySubViewHolder::class.java,
+ R.layout.item_int_exp_tally_sub
+ )
+
+ // 刷新子列表数据
+ binding.rvSub.refresh(bean.haWbList ?: emptyList())
}
}
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 4af8eca..a8b10f4 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
@@ -18,11 +18,24 @@
+ android:layout_marginHorizontal="10dp"
+ android:layout_marginTop="10dp"
+ android:orientation="vertical">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/module_gjc/src/main/res/layout/item_int_exp_load.xml b/module_gjc/src/main/res/layout/item_int_exp_load.xml
index 3e5a94e..7624eb5 100644
--- a/module_gjc/src/main/res/layout/item_int_exp_load.xml
+++ b/module_gjc/src/main/res/layout/item_int_exp_load.xml
@@ -62,7 +62,7 @@
android:text="运单号:"
android:textColor="@color/text_normal"
android:textSize="16sp"
- completeSpace="@{5}" />
+ completeSpace="@{4}" />
@@ -103,7 +103,7 @@
@@ -128,7 +128,7 @@
@@ -173,7 +173,7 @@
android:text="特码:"
android:textColor="@color/text_normal"
android:textSize="16sp"
- completeSpace="@{5}" />
+ completeSpace="@{4}" />
@@ -213,7 +213,7 @@
@@ -238,7 +238,7 @@