diff --git a/module_gjj/src/main/java/com/lukouguoji/gjj/holder/IntImpMsgParseViewHolder.kt b/module_gjj/src/main/java/com/lukouguoji/gjj/holder/IntImpMsgParseViewHolder.kt index 3016a9c..51c9097 100644 --- a/module_gjj/src/main/java/com/lukouguoji/gjj/holder/IntImpMsgParseViewHolder.kt +++ b/module_gjj/src/main/java/com/lukouguoji/gjj/holder/IntImpMsgParseViewHolder.kt @@ -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(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() } } diff --git a/module_gjj/src/main/res/drawable/bg_circle_checked.xml b/module_gjj/src/main/res/drawable/bg_circle_checked.xml new file mode 100644 index 0000000..f79e622 --- /dev/null +++ b/module_gjj/src/main/res/drawable/bg_circle_checked.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/module_gjj/src/main/res/drawable/bg_circle_unchecked.xml b/module_gjj/src/main/res/drawable/bg_circle_unchecked.xml new file mode 100644 index 0000000..771737a --- /dev/null +++ b/module_gjj/src/main/res/drawable/bg_circle_unchecked.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/module_gjj/src/main/res/drawable/bg_status_error.xml b/module_gjj/src/main/res/drawable/bg_status_error.xml new file mode 100644 index 0000000..64b8267 --- /dev/null +++ b/module_gjj/src/main/res/drawable/bg_status_error.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/module_gjj/src/main/res/drawable/bg_status_success.xml b/module_gjj/src/main/res/drawable/bg_status_success.xml new file mode 100644 index 0000000..f04f587 --- /dev/null +++ b/module_gjj/src/main/res/drawable/bg_status_success.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/module_gjj/src/main/res/drawable/ic_chevron_right.xml b/module_gjj/src/main/res/drawable/ic_chevron_right.xml new file mode 100644 index 0000000..f377fad --- /dev/null +++ b/module_gjj/src/main/res/drawable/ic_chevron_right.xml @@ -0,0 +1,13 @@ + + + diff --git a/module_gjj/src/main/res/layout/item_int_imp_msg_parse.xml b/module_gjj/src/main/res/layout/item_int_imp_msg_parse.xml index e0e6e8e..3ecf41e 100644 --- a/module_gjj/src/main/res/layout/item_int_imp_msg_parse.xml +++ b/module_gjj/src/main/res/layout/item_int_imp_msg_parse.xml @@ -1,6 +1,5 @@ @@ -16,159 +15,172 @@ type="Integer" /> - + android:layout_marginHorizontal="5dp" + android:layout_marginTop="10dp" + android:background="@drawable/bg_white_radius_8" + android:orientation="vertical"> + + android:paddingHorizontal="16dp" + android:paddingTop="16dp" + android:paddingBottom="12dp"> - + - - - - - + android:orientation="horizontal"> + + + + + + + android:textSize="13sp" + tools:text="未生成" /> - + + android:text="收报时间" + android:textColor="@color/text_gray_l" + android:textSize="15sp" /> - + + android:text="报文内容" + android:textColor="@color/text_gray_l" + android:textSize="15sp" /> - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +