public abstract class ListViewItemAnimator extends SimpleItemAnimator
RecyclerView.ItemAnimator.AdapterChanges, RecyclerView.ItemAnimator.ItemAnimatorFinishedListener, RecyclerView.ItemAnimator.ItemHolderInfo
Modifier and Type | Field and Description |
---|---|
static int |
ADD |
static int |
REMOVE |
FLAG_APPEARED_IN_PRE_LAYOUT, FLAG_CHANGED, FLAG_INVALIDATED, FLAG_MOVED, FLAG_REMOVED
Constructor and Description |
---|
ListViewItemAnimator()
Creates a new instance of the ListViewItemAnimator class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
animateAdd(RecyclerView.ViewHolder holder) |
boolean |
animateChange(RecyclerView.ViewHolder oldHolder,
RecyclerView.ViewHolder newHolder,
int fromX,
int fromY,
int toX,
int toY) |
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() |
int |
getType() |
boolean |
isRunning() |
void |
onAttached(RadListView listView)
Called when the animator is attached to
RadListView with
setItemAnimator(ListViewItemAnimator). |
void |
onDetached(RadListView listView)
Called when the animator is removed from
RadListView . |
void |
onMeasure()
Called when
RadListView 's onMeasure method is called. |
void |
runPendingAnimations() |
void |
setType(int type) |
animateAppearance, animateChange, animateDisappearance, animatePersistence, canReuseUpdatedViewHolder, dispatchAddFinished, dispatchAddStarting, dispatchChangeFinished, dispatchChangeStarting, dispatchMoveFinished, dispatchMoveStarting, dispatchRemoveFinished, dispatchRemoveStarting, getSupportsChangeAnimations, onAddFinished, onAddStarting, onChangeFinished, onChangeStarting, onMoveFinished, onMoveStarting, onRemoveFinished, onRemoveStarting, setSupportsChangeAnimations
canReuseUpdatedViewHolder, dispatchAnimationFinished, dispatchAnimationsFinished, dispatchAnimationStarted, getAddDuration, getChangeDuration, getMoveDuration, getRemoveDuration, isRunning, obtainHolderInfo, onAnimationFinished, onAnimationStarted, recordPostLayoutInformation, recordPreLayoutInformation, setAddDuration, setChangeDuration, setMoveDuration, setRemoveDuration
public static final int ADD
public static final int REMOVE
public ListViewItemAnimator()
public void onAttached(RadListView listView)
RadListView
with
setItemAnimator(ListViewItemAnimator).listView
- The parent list viewpublic int getType()
public void setType(int type)
public void onDetached(RadListView listView)
RadListView
.listView
- The parent list viewpublic void onMeasure()
RadListView
's onMeasure method is called.public void runPendingAnimations()
runPendingAnimations
in class RecyclerView.ItemAnimator
public boolean animateRemove(RecyclerView.ViewHolder holder)
animateRemove
in class SimpleItemAnimator
public boolean animateAdd(RecyclerView.ViewHolder holder)
animateAdd
in class SimpleItemAnimator
public boolean animateMove(RecyclerView.ViewHolder holder, int fromX, int fromY, int toX, int toY)
animateMove
in class SimpleItemAnimator
public boolean animateChange(RecyclerView.ViewHolder oldHolder, RecyclerView.ViewHolder newHolder, int fromX, int fromY, int toX, int toY)
animateChange
in class SimpleItemAnimator
public void endAnimation(RecyclerView.ViewHolder item)
endAnimation
in class RecyclerView.ItemAnimator
public boolean isRunning()
isRunning
in class RecyclerView.ItemAnimator
public void endAnimations()
endAnimations
in class RecyclerView.ItemAnimator