public class NotAnimatedItemAnimator
extends SimpleItemAnimator
RecyclerView.ItemAnimator
disables all animations in a RecyclerView
.Constructor and Description |
---|
NotAnimatedItemAnimator() |
Modifier and Type | Method and Description |
---|---|
boolean |
animateAdd(RecyclerView.ViewHolder holder) |
boolean |
animateChange(RecyclerView.ViewHolder oldHolder,
RecyclerView.ViewHolder newHolder,
int fromLeft,
int fromTop,
int toLeft,
int toTop) |
boolean |
animateMove(RecyclerView.ViewHolder holder,
int fromX,
int fromY,
int toX,
int toY) |
boolean |
animateRemove(RecyclerView.ViewHolder holder) |
void |
endAnimation(RecyclerView.ViewHolder item) |
void |
endAnimations() |
boolean |
isRunning() |
void |
runPendingAnimations() |
public void runPendingAnimations()
public boolean animateRemove(RecyclerView.ViewHolder holder)
public boolean animateAdd(RecyclerView.ViewHolder holder)
public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, int toY)
public boolean animateChange(RecyclerView.ViewHolder oldHolder, RecyclerView.ViewHolder newHolder, int fromLeft, int fromTop, int toLeft, int toTop)
public void endAnimation(RecyclerView.ViewHolder item)
public void endAnimations()
public boolean isRunning()