public class ChangeText
extends Transition
| Modifier and Type | Field and Description |
|---|---|
static int |
CHANGE_BEHAVIOR_IN
Flag specifying that the text changing animation should fade in the
end text into the affected target view(s).
|
static int |
CHANGE_BEHAVIOR_KEEP
Flag specifying that the text in affected/changing TextView targets will keep
their original text during the transition, setting it to the final text when
the transition ends.
|
static int |
CHANGE_BEHAVIOR_OUT
Flag specifying that the text changing animation should first fade
out the original text completely.
|
static int |
CHANGE_BEHAVIOR_OUT_IN
Flag specifying that the text changing animation should first fade
out the original text completely and then fade in the
new text.
|
| Constructor and Description |
|---|
ChangeText() |
| 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 |
getChangeBehavior()
Returns the type of changing animation that will be run.
|
java.lang.String[] |
getTransitionProperties() |
ChangeText |
setChangeBehavior(int changeBehavior)
Sets the type of changing animation that will be run, one of
CHANGE_BEHAVIOR_KEEP, CHANGE_BEHAVIOR_OUT,
CHANGE_BEHAVIOR_IN, and CHANGE_BEHAVIOR_OUT_IN. |
public static final int CHANGE_BEHAVIOR_KEEP
setChangeBehavior(int),
Constant Field Valuespublic static final int CHANGE_BEHAVIOR_OUT
CHANGE_BEHAVIOR_IN transition, allowing more
flexibility than the CHANGE_BEHAVIOR_OUT_IN by allowing other
transitions to be run sequentially or in parallel with these fades.setChangeBehavior(int),
Constant Field Valuespublic static final int CHANGE_BEHAVIOR_IN
CHANGE_BEHAVIOR_OUT
transition, possibly with other transitions running as well, such as
a sequence to fade out, then resize the view, then fade in.setChangeBehavior(int),
Constant Field Valuespublic static final int CHANGE_BEHAVIOR_OUT_IN
setChangeBehavior(int),
Constant Field Valuespublic ChangeText setChangeBehavior(int changeBehavior)
CHANGE_BEHAVIOR_KEEP, CHANGE_BEHAVIOR_OUT,
CHANGE_BEHAVIOR_IN, and CHANGE_BEHAVIOR_OUT_IN.changeBehavior - The type of fading animation to use when this
transition is run.public java.lang.String[] getTransitionProperties()
public int getChangeBehavior()
CHANGE_BEHAVIOR_KEEP, CHANGE_BEHAVIOR_OUT,
CHANGE_BEHAVIOR_IN, or CHANGE_BEHAVIOR_OUT_IN.public void captureStartValues(TransitionValues transitionValues)
public void captureEndValues(TransitionValues transitionValues)
public android.animation.Animator createAnimator(android.view.ViewGroup sceneRoot,
TransitionValues startValues,
TransitionValues endValues)