-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问下,怎么删除嵌套分组中的第三级Item? #313
Comments
嵌套分组就是多类型item, 根据 |
感谢回复,请问删除itemSublist的方式这样可以吗? 如果不可以,还请帮忙指导下,谢谢 |
可以的, 最近我比较忙碌没有及时回复抱歉, 建议使用models而不是过度依赖 请自己优先尝试 |
好的,因为对kotlin才刚刚开始学着使用,所以排查起来有些困难,实在是打扰了,我尝试以下方式删除第三级数据,会出现被删除的第三级item跑到第二级去了,不知道是哪里出问题了 var _data =rv?.bindingAdapter?._data as MutableList<GroupModel>
_data.get(0).jsonSublist.get(0).jsonSublist.removeAt(0)
rv?.models=_data
notifyDataSetChanged() |
已添加嵌套分组删除示例代码, 请查看下面显示的提交内容 |
好的,十分感谢 |
问题描述
期望行为
如何复现
截图
异常堆栈信息或者手机截图/视频(拖拽到输入框即可上传)
版本
The text was updated successfully, but these errors were encountered: