File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -222,4 +222,13 @@ EpoxyMenuTouchHelper.initDragging(epoxyController)
222222 objectAnimator?.cancel()
223223 }
224224 })
225- ```
225+ ```
226+
227+ #### Other
228+ MenuItemTouchHelper directly copy-paste the code from ItemTouchHelper.
229+
230+ When using drag-and-drop in RecyclerView, Dragging the 1st item causes fast scrolling.
231+
232+ It leads to the fact that the 1st item can't be placed, for instance, to the 2nd position.
233+
234+ It is recommended to replace the first item with a non-draggable view.
Original file line number Diff line number Diff line change @@ -223,4 +223,14 @@ EpoxyMenuTouchHelper.initDragging(epoxyController)
223223 objectAnimator?.cancel()
224224 }
225225 })
226- ```
226+ ```
227+
228+ #### 其它
229+ MenuItemTouchHelper直接复制粘贴了ItemTouchHelper的代码。
230+
231+ 在RecyclerView中使用拖拽排序时,拖拽第一个item向下移动会导致快速向下滚动的问题。
232+
233+ 导致难以让第一个item移到第二的位置。
234+
235+ 所以建议在第一个item的位置以一个不可拖拽的view来代替。
236+
You can’t perform that action at this time.
0 commit comments