Closed AtulaGuleria closed 8 years ago
In onItemMove, you have to swap your list item.
onItemMove
After swapping, you have access to the new list.
@Override public boolean onItemMove(int fromPosition, int toPosition) { Collections.swap(yourList, fromPosition, toPosition); notifyItemMoved(fromPosition, toPosition); return true; }
thanks.
In
onItemMove
, you have to swap your list item.After swapping, you have access to the new list.
@Override public boolean onItemMove(int fromPosition, int toPosition) { Collections.swap(yourList, fromPosition, toPosition); notifyItemMoved(fromPosition, toPosition); return true; }