public static class ItemSwipeHelper.SwipeItemAnimator extends DefaultItemAnimator
DefaultItemAnimator extension which overrides default implementation of
animateChange(RecyclerView.ViewHolder, RecyclerView.ViewHolder, int, int, int, int)
in a way that does not cause any drawing artifacts to occur when state of item view for swiped
view holder is about to be restored via ItemSwipeHelper.restoreHolder(RecyclerView.ViewHolder, int, Runnable).
This animator should be used for RecyclerView to which is ItemSwipeHelper attached.
RecyclerView.ItemAnimator.AdapterChanges, RecyclerView.ItemAnimator.ItemAnimatorFinishedListener, RecyclerView.ItemAnimator.ItemHolderInfoFLAG_APPEARED_IN_PRE_LAYOUT, FLAG_CHANGED, FLAG_INVALIDATED, FLAG_MOVED, FLAG_REMOVED| Constructor and Description |
|---|
SwipeItemAnimator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
animateChange(RecyclerView.ViewHolder oldHolder,
RecyclerView.ViewHolder newHolder,
int fromX,
int fromY,
int toX,
int toY) |
animateAdd, animateMove, animateRemove, canReuseUpdatedViewHolder, endAnimation, endAnimations, isRunning, runPendingAnimationsanimateAppearance, animateChange, animateDisappearance, animatePersistence, canReuseUpdatedViewHolder, dispatchAddFinished, dispatchAddStarting, dispatchChangeFinished, dispatchChangeStarting, dispatchMoveFinished, dispatchMoveStarting, dispatchRemoveFinished, dispatchRemoveStarting, getSupportsChangeAnimations, onAddFinished, onAddStarting, onChangeFinished, onChangeStarting, onMoveFinished, onMoveStarting, onRemoveFinished, onRemoveStarting, setSupportsChangeAnimationsdispatchAnimationFinished, dispatchAnimationsFinished, dispatchAnimationStarted, getAddDuration, getChangeDuration, getMoveDuration, getRemoveDuration, isRunning, obtainHolderInfo, onAnimationFinished, onAnimationStarted, recordPostLayoutInformation, recordPreLayoutInformation, setAddDuration, setChangeDuration, setMoveDuration, setRemoveDurationpublic boolean animateChange(@NonNull RecyclerView.ViewHolder oldHolder, @NonNull RecyclerView.ViewHolder newHolder, int fromX, int fromY, int toX, int toY)
animateChange in class DefaultItemAnimator