Skip to content

Insert and remove animations do not work #2

@opus1269

Description

@opus1269

Very clean library, thanks!

The call to notifyDataSetChanged interrupts the default onSwipe animations in RecyclerView

   /**
     * Swap the Cursor of the CursorAdapter and notify the RecyclerView.Adapter that data has
     * changed.
     * @param cursor The new Cursor representation of the data to be displayed.
     */
    public void swapCursor(Cursor cursor) {
        this.mCursorAdapter.swapCursor(cursor);
        notifyDataSetChanged();
    }

I was able to get it working using guidance from the answer in this post:

http://stackoverflow.com/questions/31697083/recycler-view-add-remove-item-animations-not-showing-in-swapcursor

No modifications of your library are needed, but it might be good to provide info. on this in the documentation and maybe a sample that implements swipe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions