public abstract class TransitionChangeHandler
extends ControllerChangeHandler
ControllerChangeHandler that facilitates using Transitions to replace Controller Views.| Modifier and Type | Class and Description |
|---|---|
static interface |
TransitionChangeHandler.OnTransitionPreparedListener |
| Constructor and Description |
|---|
TransitionChangeHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
completeImmediately() |
void |
executePropertyChanges(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
Transition transition,
boolean isPush)
This should set all view properties needed for the transition to work properly.
|
protected abstract Transition |
getTransition(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
boolean isPush)
Should be overridden to return the Transition to use while replacing Views.
|
void |
onAbortPush(ControllerChangeHandler newHandler,
Controller newTop) |
void |
performChange(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
boolean isPush,
ControllerChangeCompletedListener changeListener) |
void |
prepareForTransition(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
Transition transition,
boolean isPush,
TransitionChangeHandler.OnTransitionPreparedListener onTransitionPreparedListener)
Called before a transition occurs.
|
boolean |
removesFromViewOnPush() |
protected abstract Transition getTransition(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
boolean isPush)
container - The container these Views are hosted infrom - 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 poppublic void onAbortPush(ControllerChangeHandler newHandler,
Controller newTop)
public void completeImmediately()
public void performChange(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
boolean isPush,
ControllerChangeCompletedListener changeListener)
public boolean removesFromViewOnPush()
public void prepareForTransition(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
Transition transition,
boolean isPush,
TransitionChangeHandler.OnTransitionPreparedListener onTransitionPreparedListener)
onTransitionPreparedListener is called.container - The container these Views are hosted infrom - 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 totransition - The transition that is being prepared forisPush - True if this is a push transaction, false if it's a poppublic void executePropertyChanges(android.view.ViewGroup container,
android.view.View from,
android.view.View to,
Transition transition,
boolean isPush)
container - The container these Views are hosted infrom - 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 totransition - The transition with which TransitionManager.beginDelayedTransition has been called. This will be null only if another ControllerChangeHandler immediately overrides this one.isPush - True if this is a push transaction, false if it's a pop