I upload it to the app, I change the images and save them to firebase, but I can't save them with the new positions
dragMgr.setOnItemDragEventListener (new RecyclerViewDragDropManager .OnItemDragEventListener () {
@Override
public void onItemDragStarted (int position) {
Log.i ("posi5", String.valueOf (position));
}
@Override
public void onItemDragPositionChanged (int fromPosition, int toPosition) {
Log.i ("posi6", String.valueOf (fromPosition));
Log.i ("posi66", String.valueOf (toPosition));
}
@Override
public void onItemDragFinished (int fromPosition, int toPosition, boolean result) {
}
@Override
public void onItemDragMoveDistanceUpdated (int offsetX, int offsetY) {
}
I can get the updated position but I don't know how to update my list
I upload it to the app, I change the images and save them to firebase, but I can't save them with the new positions dragMgr.setOnItemDragEventListener (new RecyclerViewDragDropManager .OnItemDragEventListener () { @Override public void onItemDragStarted (int position) { Log.i ("posi5", String.valueOf (position)); } @Override public void onItemDragPositionChanged (int fromPosition, int toPosition) { Log.i ("posi6", String.valueOf (fromPosition)); Log.i ("posi66", String.valueOf (toPosition));
}
@Override public void onItemDragFinished (int fromPosition, int toPosition, boolean result) { }
@Override public void onItemDragMoveDistanceUpdated (int offsetX, int offsetY) {
}
I can get the updated position but I don't know how to update my list