Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pknotfound authored Oct 24, 2020
1 parent bd0f200 commit 74e4c17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,14 @@ In a notes app, if you wish to change positions of two notes in your database, a
adapter.moveItem(positionStart, positionEnd)
}
## Java Implementation
All the optional parameters are null, and thus the simplest implementation is,

DragAndDropKt.addDragToShift(recyclerView,null);

## Kotlin Implementation
recycler.addDragToShift()

The optional parameter can be provided if needed.

[![rec-2020-10-24_00.10.0459f8d3ce489a4f0f.gif](https://s8.gifyu.com/images/rec-2020-10-24_00.10.0459f8d3ce489a4f0f.gif)](https://gifyu.com/image/8jl5)

0 comments on commit 74e4c17

Please sign in to comment.