| | |
| | | override fun onBind(holder: ViewHolder, position: Int, data: Msg) { |
| | | val iv = holder.bind<ImageView>(R.id.iv) |
| | | iv.setImageResource(if (data.noticeType == 2) R.mipmap.ic_msg1 else R.mipmap.ic_notice) |
| | | holder.setText(R.id.tv_type,if (data.noticeType == 2) "回复消息" else "系统消息") |
| | | // holder.setText(R.id.tv_type,if (data.noticeType == 2) "回复消息" else "系统消息") |
| | | holder.setText(R.id.tv_type,data.title) |
| | | holder.bind<View>(R.id.iv_unread).visibility = if (data.readStatus == 1) View.VISIBLE else View.GONE |
| | | holder.setText(R.id.tv_time,data.time) |
| | | holder.setText(R.id.tv_content,data.content) |