CymChad / CymChad/BaseRecyclerViewAdapterHelper
fragment中使用BaseItemDraggableAdapter无法更换位置,
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
使用BaseItemDraggableAdapter适配器上下移动RecyclerView中的数据,在activity中使用正常,但是在fragment中使用时,
,只执行开始和结束,中间onItemDragMoving方法没有执行,没有报错,希望大神们指点一下
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing BaseItemDraggableAdapter's move behavior in a Fragment and compare it with the working Activity setup, focusing on why onItemDragMoving is skipped. Done means the Fragment invokes onItemDragMoving during movement without errors and the RecyclerView data changes position correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100