CymChad / BaseRecyclerViewAdapterHelper

BRVAH:Powerful and flexible RecyclerAdapter
http://www.recyclerview.org/
MIT License
24.3k stars 5.15k forks source link

GridLayoutManager 展示时排序数据异常 #3790

Closed Chase-Hao closed 1 year ago

Chase-Hao commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

  1. 尝试在历史问题搜索答案。
  2. 尝试阅读文档找到答案。
  3. 尝试阅读Demo找到答案。
  4. 尝试自己检查或试验以找到答案。
  5. 尝试阅读源代码以找到答案。
  6. 请勿将产品的一些特殊交互需求 和 该库暂不支持作为bug混为一谈,请您仔细甄别

如果以上都尝试过了请提一个新的issues
参考提問的智慧

如果还是没有找到答案,提问请带上这几个必要信息

  1. 当前使用的版本号
  2. 复现操作描述
  3. 使用代码
  4. crash日志
  5. gif复现效果
  6. 抽取demo 将你出现的问题代码抽出来成一个可直接运行的项目。(最好fork本库修改) 在本地修改demo,然后把commit push到github上,在issue里贴下demo的地址。

有详细的描述才能使得我们更快速的定位问题并解决问题,感谢配合! 只是把layoutmanager 展示换了下 然后 拖动方式换了下 demo代码只支持上下 我换成了上下左右都加上了 但是拖动之后数据是不对的

企业微信截图_16907739628913 企业微信截图_16907739824527 企业微信截图_16907740482103

limuyang2 commented 1 year ago

可否给个完整代码zip,我下载研究下

Chase-Hao commented 1 year ago

新建文件夹.zip 我就改了里面这个类的一个展示方式 用您的demo来改的 谢谢

limuyang2 commented 1 year ago

已经验证,是 swap 方法的bug导致,这里出现了歧义,已经新增了方法解决

limuyang2 commented 1 year ago

最新代码已经解决

Chase-Hao commented 1 year ago

已经解决,谢谢