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

Ability to update draggable item manually #478

Open cempo opened 5 years ago

cempo commented 5 years ago

Thank you for great library! I need one more feature for my app. It is ability to update draggable item manually

It can looks like method in RecyclerViewDragDropManager class:

public void updateDraggableItemView() {
        if (mDraggingItemInfo != null) {
            final RecyclerView.ViewHolder vh = mRecyclerView.findViewHolderForItemId(mDraggingItemInfo.id);
            if (vh == null) {
                return;
            }

            mDraggingItemInfo = DraggingItemInfo.createWithNewView(mDraggingItemInfo, vh);
            mDraggingItemDecorator.updateDraggingItemView(mDraggingItemInfo, vh);
        }
    }

Or do we already have way to do it? Thank you