woxblom / DragListView

Drag and drop to reorder items in a list, grid or board for Android. Based on RecyclerView. Also supports swiping items in a list.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move item to other column programmatically

guizot opened this issue · comments

I want to move item from first column (column_1) to other column (column_2) programmatically

can you tell me how to achieve that?

You can use the BoardView::moveItem() method.

will it trigger BoardView.BoardListener? and onItemDragEnded?

No it will not, it will just move it directly with no callback. But since you know that you moved it you can do the actions you need or manually call the same code that onItemDragEnded would have called.