DefaultItemAnimationpublic abstract class BaseItemAnimation extends ItemAnimation
ItemAnimation to provide simplified logic.
On the basis of ItemAnimation, this class simplifies the complex animation logic and provides more
intuitive APIs to implement remove, add, move, and change animations.
ItemAnimation.ItemAnimationCleaner, ItemAnimation.ItemAnimationFinishedListenerANIMATION_CLASS_TYPE_BASEITEMANIMATION, ANIMATION_CLASS_TYPE_DEFAULTITEMANIMATION, ANIMATION_CLASS_TYPE_ITEMANIMATION, mNativePtr| 构造器 | 说明 |
|---|---|
BaseItemAnimation() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected void |
createNativePtr() |
Creates a native pointer to this
ItemAnimation instance. |
boolean |
getAllowChangeAnimations() |
Checks whether this
ItemAnimation supports animations with data updates. |
void |
onAddFinished(ComponentOwner item) |
Called when an add animation finishes running on the component corresponding to a given
ComponentOwner. |
void |
onAddStarting(ComponentOwner item) |
Called when an add animation starts running on the component corresponding to a given
ComponentOwner. |
void |
onChangeFinished(ComponentOwner item,
boolean oldItem) |
Called when a change animation finishes running on the component corresponding to a given
ComponentOwner. |
void |
onChangeStarting(ComponentOwner item,
boolean oldItem) |
Called when a change animation starts running on the component corresponding to a given
ComponentOwner. |
void |
onMoveFinished(ComponentOwner item) |
Called when a move animation finishes running on the component corresponding to a given
ComponentOwner. |
void |
onMoveStarting(ComponentOwner item) |
Called when a move animation starts running on the component corresponding to a given
ComponentOwner. |
void |
onRemoveFinished(ComponentOwner item) |
Called when a remove animation finishes running on the component corresponding to a given
ComponentOwner. |
void |
onRemoveStarting(ComponentOwner item) |
Called when an animation starts running on the component corresponding to a given
ComponentOwner. |
void |
setAllowChangeAnimations(boolean supportsChangeAnimations) |
Sets whether to enable this
ItemAnimation to support animations with data updates. |
finishAnimation, finishAnimations, getAddAnimationTime, getChangeAnimationTime, getMoveAnimationTime, getNativePtr, getRemoveAnimationTime, isRunning, isRunning, onAnimationFinished, onAnimationStarted, setAddAnimationTime, setChangeAnimationTime, setMoveAnimationTime, setRemoveAnimationTimeprotected void createNativePtr()
ItemAnimationItemAnimation instance.createNativePtr 在类中 ItemAnimationpublic boolean getAllowChangeAnimations()
ItemAnimation supports animations with data updates.true if the ItemAnimation supports animations with data updates; returns
false otherwise.public void setAllowChangeAnimations(boolean supportsChangeAnimations)
ItemAnimation to support animations with data updates.supportsChangeAnimations - Specifies whether to support animations with data updates. The value
true means to support animations with data updates, and false means the opposite.public void onRemoveStarting(ComponentOwner item)
ComponentOwner.item - Indicates the ComponentOwner of the component.public void onRemoveFinished(ComponentOwner item)
ComponentOwner.item - Indicates the ComponentOwner of the component.public void onAddStarting(ComponentOwner item)
ComponentOwner.item - Indicates the ComponentOwner of the component.public void onAddFinished(ComponentOwner item)
ComponentOwner.item - Indicates the ComponentOwner of the component.public void onMoveStarting(ComponentOwner item)
ComponentOwner.item - Indicates the ComponentOwner of the component.public void onMoveFinished(ComponentOwner item)
ComponentOwner.item - Indicates the ComponentOwner of the component.public void onChangeStarting(ComponentOwner item, boolean oldItem)
ComponentOwner.item - Indicates the ComponentOwner of the component.oldItem - Specifies whether the component is the old one. The value true means that the component
is the old one, and false means the opposite.public void onChangeFinished(ComponentOwner item, boolean oldItem)
ComponentOwner.item - Indicates the ComponentOwner of the component.oldItem - Specifies whether the component is the old one. The value true means that the component
is the old one, and false means the opposite.