FileDocCategorySizeDatePackage
ActionBarTransition.javaAPI DocAndroid 5.1 API2028Thu Mar 12 22:22:10 GMT 2015com.android.internal.transition

ActionBarTransition

public class ActionBarTransition extends Object

Fields Summary
private static boolean
TRANSITIONS_ENABLED
private static final int
TRANSITION_DURATION
private static final android.transition.Transition
sTransition
Constructors Summary
Methods Summary
public static voidbeginDelayedTransition(android.view.ViewGroup sceneRoot)


     
        if (TRANSITIONS_ENABLED) {
            final ChangeText tc = new ChangeText();
            tc.setChangeBehavior(ChangeText.CHANGE_BEHAVIOR_OUT_IN);
            final TransitionSet inner = new TransitionSet();
            inner.addTransition(tc).addTransition(new ChangeBounds());
            final TransitionSet tg = new TransitionSet();
            tg.addTransition(new Fade(Fade.OUT)).addTransition(inner).
                    addTransition(new Fade(Fade.IN));
            tg.setOrdering(TransitionSet.ORDERING_SEQUENTIAL);
            tg.setDuration(TRANSITION_DURATION);
            sTransition = tg;
        } else {
            sTransition = null;
        }
    
        if (TRANSITIONS_ENABLED) {
            TransitionManager.beginDelayedTransition(sceneRoot, sTransition);
        }