Skip to content

Commit c9aa8be

Browse files
committed
edit README
1 parent 1983f6e commit c9aa8be

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

README_zh.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)