CymChad / CymChad/BaseRecyclerViewAdapterHelper

fragment中使用BaseItemDraggableAdapter无法更换位置,

Open
#3,460 1 comment 0 reactions 0 assignees View on GitHub

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中使用时,
image,只执行开始和结束,中间onItemDragMoving方法没有执行,没有报错,希望大神们指点一下

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.