public class ScaleItemAnimator extends ListViewItemAnimator
RecyclerView.ItemAnimator.AdapterChanges, RecyclerView.ItemAnimator.ItemAnimatorFinishedListener, RecyclerView.ItemAnimator.ItemHolderInfo
ADD, REMOVE
FLAG_APPEARED_IN_PRE_LAYOUT, FLAG_CHANGED, FLAG_INVALIDATED, FLAG_MOVED, FLAG_REMOVED
Constructor and Description |
---|
ScaleItemAnimator()
Creates a new instance of ScaleItemAnimator.
|
Modifier and Type | Method and Description |
---|---|
void |
endAnimation(RecyclerView.ViewHolder holder) |
float |
getScaleX()
Gets the current scale for the x value of the items that are added or removed.
|
float |
getScaleY()
Gets the current scale for the y value of the items that are added or removed.
|
void |
setScaleX(float scaleX)
Sets a new scale for the x value of the items that are added or removed.
|
void |
setScaleY(float scaleY)
Sets a new scale for the y value of the items that are added or removed.
|
animateAdd, animateChange, animateMove, animateRemove, endAnimations, getType, isRunning, onAttached, onDetached, onMeasure, runPendingAnimations, setType
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 ScaleItemAnimator()
public float getScaleX()
0.3f
public void setScaleX(float scaleX)
0.3f
public float getScaleY()
0.3f
public void setScaleY(float scaleY)
0.3f
public void endAnimation(RecyclerView.ViewHolder holder)
endAnimation
in class ListViewItemAnimator