Current,I am having a problem when execute drag and drop item in recyclerview. I am doing with reference from https://github.com/iPaulPro/Android-ItemTouchHelper-Demo But when execute function in adapter:
mListBookMark is ArrayList of Object
@Override
public boolean onItemMove(int fromPosition, int toPosition) {
Collections.swap(mListBookMark, fromPosition, toPosition);
notifyItemMoved(fromPosition, toPosition);
return true;
}
When I drag item from position a to position b but when finish drag recycler view not data changed. How must I do? Please give some suggestion for me! Thank you.