refactor: 优化国际进港电报解析列表项UI对齐设计稿

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 15:33:36 +08:00
parent 0a9230860b
commit e12e0db7be
7 changed files with 157 additions and 97 deletions

View File

@@ -5,9 +5,6 @@ import com.lukouguoji.gjj.databinding.ItemIntImpMsgParseBinding
import com.lukouguoji.module_base.base.BaseViewHolder
import com.lukouguoji.module_base.bean.MsgReceivePool
/**
* 国际进港电报解析列表项ViewHolder
*/
class IntImpMsgParseViewHolder(view: View) :
BaseViewHolder<MsgReceivePool, ItemIntImpMsgParseBinding>(view) {
@@ -17,15 +14,12 @@ class IntImpMsgParseViewHolder(view: View) :
binding.position = position
binding.executePendingBindings()
// 添加卡片点击事件 - 查看详情
notifyItemClick(position, binding.cardView)
// 卡片点击 - 查看详情
notifyItemClick(position, binding.llContent)
// 添加选择图标点击事件 - 切换选择状态
// 选择框点击 - 切换选择状态
binding.ivCheck.setOnClickListener {
// 反转checked状态
bean.checked.set(!bean.checked.get())
// 立即更新UI
binding.executePendingBindings()
}
}