From c9aa8be027effc17e4240d62a54c4ed412ad351f Mon Sep 17 00:00:00 2001 From: benjaminwan Date: Thu, 11 Mar 2021 10:56:28 +0800 Subject: [PATCH] edit README --- README.md | 11 ++++++++++- README_zh.md | 12 +++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 869d2e6..09b4090 100644 --- a/README.md +++ b/README.md @@ -222,4 +222,13 @@ EpoxyMenuTouchHelper.initDragging(epoxyController) objectAnimator?.cancel() } }) -``` \ No newline at end of file +``` + +#### Other +MenuItemTouchHelper directly copy-paste the code from ItemTouchHelper. + +When using drag-and-drop in RecyclerView, Dragging the 1st item causes fast scrolling. + +It leads to the fact that the 1st item can't be placed, for instance, to the 2nd position. + +It is recommended to replace the first item with a non-draggable view. diff --git a/README_zh.md b/README_zh.md index c47314c..0208884 100644 --- a/README_zh.md +++ b/README_zh.md @@ -223,4 +223,14 @@ EpoxyMenuTouchHelper.initDragging(epoxyController) objectAnimator?.cancel() } }) -``` \ No newline at end of file +``` + +#### 其它 +MenuItemTouchHelper直接复制粘贴了ItemTouchHelper的代码。 + +在RecyclerView中使用拖拽排序时,拖拽第一个item向下移动会导致快速向下滚动的问题。 + +导致难以让第一个item移到第二的位置。 + +所以建议在第一个item的位置以一个不可拖拽的view来代替。 +