h6ah4i / android-advancedrecyclerview

RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
https://advancedrecyclerview.h6ah4i.com/
Apache License 2.0
5.32k stars 860 forks source link

How to save the list of recycle images after relocating them? #493

Open GrandeSamarone opened 5 years ago

GrandeSamarone commented 5 years ago

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