public class VerticalChangeHandler extends AnimatorChangeHandler
AnimatorChangeHandler that will slide either slide a new View up or slide an old View down,
depending on whether a push or pop change is happening.ControllerChangeHandler.ControllerChangeCompletedListener, ControllerChangeHandler.ControllerChangeListenerDEFAULT_ANIMATION_DURATION| Constructor and Description |
|---|
VerticalChangeHandler() |
VerticalChangeHandler(boolean removesFromViewOnPush) |
VerticalChangeHandler(long duration) |
VerticalChangeHandler(long duration,
boolean removesFromViewOnPush) |
| Modifier and Type | Method and Description |
|---|---|
ControllerChangeHandler |
copy()
Returns a copy of this ControllerChangeHandler.
|
protected android.animation.Animator |
getAnimator(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
boolean isPush,
boolean toAddedToContainer)
Should be overridden to return the Animator to use while replacing Views.
|
protected void |
resetFromView(android.view.View from)
Will be called after the animation is complete to reset the View that was removed to its pre-animation state.
|
completeImmediately, getAnimationDuration, onAbortPush, performChange, removesFromViewOnPush, restoreFromBundle, saveToBundlefromBundle, isReusable, setForceRemoveViewOnPushpublic VerticalChangeHandler()
public VerticalChangeHandler(boolean removesFromViewOnPush)
public VerticalChangeHandler(long duration)
public VerticalChangeHandler(long duration,
boolean removesFromViewOnPush)
protected android.animation.Animator getAnimator(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
boolean isPush,
boolean toAddedToContainer)
AnimatorChangeHandlergetAnimator in class AnimatorChangeHandlercontainer - The container these Views are hosted in.from - The previous View in the container or null if there was no Controller before this transitionto - The next View that should be put in the container or null if no Controller is being transitioned toisPush - True if this is a push transaction, false if it's a pop.toAddedToContainer - True if the "to" view was added to the container as a part of this ChangeHandler. False if it was already in the hierarchy.protected void resetFromView(android.view.View from)
AnimatorChangeHandlerresetFromView in class AnimatorChangeHandlerpublic ControllerChangeHandler copy()
ControllerChangeHandlercopy in class ControllerChangeHandler