Skip to content

Commit

Permalink
edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwan committed Mar 11, 2021
1 parent 1983f6e commit c9aa8be
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,13 @@ EpoxyMenuTouchHelper.initDragging(epoxyController)
objectAnimator?.cancel()
}
})
```
```

#### 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.
12 changes: 11 additions & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,14 @@ EpoxyMenuTouchHelper.initDragging(epoxyController)
objectAnimator?.cancel()
}
})
```
```

#### 其它
MenuItemTouchHelper直接复制粘贴了ItemTouchHelper的代码。

在RecyclerView中使用拖拽排序时,拖拽第一个item向下移动会导致快速向下滚动的问题。

导致难以让第一个item移到第二的位置。

所以建议在第一个item的位置以一个不可拖拽的view来代替。

0 comments on commit c9aa8be

Please sign in to comment.