CymChad / CymChad/BaseRecyclerViewAdapterHelper
BaseProviderMultiAdapter
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
继承BaseProviderMultiAdapter的ProviderMultiAdapter,然后实现DraggableModule。ProviderMultiAdapter写入三种布局。
通过以下方式设置拖拽换位置,任意ItemProvider只能在三个布局之外换位。不能在三个位置中间换位
dapter.getDraggableModule().setSwipeEnabled(true);
adapter.getDraggableModule().setDragEnabled(true);
adapter.getDraggableModule().setOnItemDragListener(listener);
adapter.getDraggableModule().getItemTouchHelperCallback().setSwipeMoveFlags(ItemTouchHelper.START | ItemTouchHelper.END);
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
Start by reading BaseProviderMultiAdapter, ProviderMultiAdapter, and DraggableModule, then trace the shown drag configuration APIs. The work is complete when ProviderMultiAdapter supports three layouts and drag or swipe movement is restricted so items cannot exchange positions within those layouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100