Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
DragAndDropExampleInteractor.kt
DragAndDropView.kt
README.md

README.md

Drag and Drop

Drag and Drop is a simple example of a list that allows selection, and drag and drop

Model

It uses simple values to represent them on the list

State

Elements are the elements on the list

Selected are the elements in the list that are selected

Business logic

handleSelected()

Handles selecting elements on click

handleDragAndDrop()

Handles swapping elements on the list after the user long presses to move one