public class Crossfade
extends Transition
Note: This transition is not compatible with TextureView
or SurfaceView.
| Modifier and Type | Field and Description |
|---|---|
static int |
FADE_BEHAVIOR_CROSSFADE
Flag specifying that the fading animation should cross-fade
between the old and new representation of all affected target
views.
|
static int |
FADE_BEHAVIOR_OUT_IN
Flag specifying that the fading animation should first fade
out the original representation completely and then fade in the
new one.
|
static int |
FADE_BEHAVIOR_REVEAL
Flag specifying that the fading animation should reveal the
new representation of all affected target views.
|
static int |
RESIZE_BEHAVIOR_NONE
Flag specifying that the transition should not animate any
changes in size between the old and new target views.
|
static int |
RESIZE_BEHAVIOR_SCALE
Flag specifying that the transition should animate any
changes in size between the old and new target views.
|
| Constructor and Description |
|---|
Crossfade() |
| Modifier and Type | Method and Description |
|---|---|
void |
captureEndValues(TransitionValues transitionValues) |
void |
captureStartValues(TransitionValues transitionValues) |
android.animation.Animator |
createAnimator(android.view.ViewGroup sceneRoot,
TransitionValues startValues,
TransitionValues endValues) |
int |
getFadeBehavior()
Returns the fading behavior of the animation.
|
int |
getResizeBehavior()
Returns the resizing behavior of the animation.
|
Crossfade |
setFadeBehavior(int fadeBehavior)
Sets the type of fading animation that will be run, one of
FADE_BEHAVIOR_CROSSFADE and FADE_BEHAVIOR_REVEAL. |
Crossfade |
setResizeBehavior(int resizeBehavior)
Sets the type of resizing behavior that will be used during the
transition animation, one of
RESIZE_BEHAVIOR_NONE and
RESIZE_BEHAVIOR_SCALE. |
public static final int FADE_BEHAVIOR_CROSSFADE
setFadeBehavior(int),
Constant Field Valuespublic static final int FADE_BEHAVIOR_REVEAL
setFadeBehavior(int),
Constant Field Valuespublic static final int FADE_BEHAVIOR_OUT_IN
setFadeBehavior(int),
Constant Field Valuespublic static final int RESIZE_BEHAVIOR_NONE
setResizeBehavior(int),
Constant Field Valuespublic static final int RESIZE_BEHAVIOR_SCALE
setResizeBehavior(int),
Constant Field Valuespublic Crossfade setFadeBehavior(int fadeBehavior)
FADE_BEHAVIOR_CROSSFADE and FADE_BEHAVIOR_REVEAL.fadeBehavior - The type of fading animation to use when this
transition is run.public int getFadeBehavior()
setFadeBehavior(int)public Crossfade setResizeBehavior(int resizeBehavior)
RESIZE_BEHAVIOR_NONE and
RESIZE_BEHAVIOR_SCALE.resizeBehavior - The type of resizing behavior to use when this
transition is run.public int getResizeBehavior()
setResizeBehavior(int)public android.animation.Animator createAnimator(android.view.ViewGroup sceneRoot,
TransitionValues startValues,
TransitionValues endValues)
public void captureStartValues(TransitionValues transitionValues)
public void captureEndValues(TransitionValues transitionValues)