FileDocCategorySizeDatePackage
TransitionHelperKitkat.javaAPI DocAndroid 5.1 API7951Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.transition

TransitionHelperKitkat

public final class TransitionHelperKitkat extends Object

Fields Summary
Constructors Summary
TransitionHelperKitkat()

    
Methods Summary
static voidaddTarget(java.lang.Object transition, android.view.View view)

        ((Transition) transition).addTarget(view);
    
static voidaddTransition(java.lang.Object transitionSet, java.lang.Object transition)

        ((TransitionSet) transitionSet).addTransition((Transition) transition);
    
static java.lang.ObjectcreateAutoTransition()

        return new AutoTransition();
    
static java.lang.ObjectcreateChangeBounds(boolean reparent)

        CustomChangeBounds changeBounds = new CustomChangeBounds();
        changeBounds.setReparent(reparent);
        return changeBounds;
    
static java.lang.ObjectcreateFadeTransition(int fadingMode)

        Fade fade = new Fade(fadingMode);
        return fade;
    
static java.lang.ObjectcreateScale()

        Scale scale = new Scale();
        return scale;
    
static java.lang.ObjectcreateScene(android.view.ViewGroup sceneRoot, java.lang.Runnable enterAction)

        Scene scene = new Scene(sceneRoot);
        scene.setEnterAction(enterAction);
        return scene;
    
static java.lang.ObjectcreateSlide(int slideEdge)

        SlideKitkat slide = new SlideKitkat();
        slide.setSlideEdge(slideEdge);
        return slide;
    
static java.lang.ObjectcreateTransitionSet(boolean sequential)

        TransitionSet set = new TransitionSet();
        set.setOrdering(sequential ? TransitionSet.ORDERING_SEQUENTIAL :
            TransitionSet.ORDERING_TOGETHER);
        return set;
    
static voidexclude(java.lang.Object transition, int targetId, boolean exclude)

        ((Transition) transition).excludeTarget(targetId, exclude);
    
static voidexclude(java.lang.Object transition, android.view.View targetView, boolean exclude)

        ((Transition) transition).excludeTarget(targetView, exclude);
    
static voidexcludeChildren(java.lang.Object transition, int targetId, boolean exclude)

        ((Transition) transition).excludeChildren(targetId, exclude);
    
static voidexcludeChildren(java.lang.Object transition, android.view.View targetView, boolean exclude)

        ((Transition) transition).excludeChildren(targetView, exclude);
    
static voidinclude(java.lang.Object transition, int targetId)

        ((Transition) transition).addTarget(targetId);
    
static voidinclude(java.lang.Object transition, android.view.View targetView)

        ((Transition) transition).addTarget(targetView);
    
static java.lang.ObjectloadTransition(android.content.Context context, int resId)

        return TransitionInflater.from(context).inflateTransition(resId);
    
static voidrunTransition(java.lang.Object scene, java.lang.Object transition)

        TransitionManager.go((Scene) scene, (Transition) transition);
    
static voidsetChangeBoundsDefaultStartDelay(java.lang.Object changeBounds, int startDelay)

        ((CustomChangeBounds) changeBounds).setDefaultStartDelay(startDelay);
    
static voidsetChangeBoundsStartDelay(java.lang.Object changeBounds, int viewId, int startDelay)

        ((CustomChangeBounds) changeBounds).setStartDelay(viewId, startDelay);
    
static voidsetChangeBoundsStartDelay(java.lang.Object changeBounds, android.view.View view, int startDelay)

        ((CustomChangeBounds) changeBounds).setStartDelay(view, startDelay);
    
static voidsetChangeBoundsStartDelay(java.lang.Object changeBounds, java.lang.String className, int startDelay)

        ((CustomChangeBounds) changeBounds).setStartDelay(className, startDelay);
    
static voidsetDuration(java.lang.Object transition, long duration)

        ((Transition)transition).setDuration(duration);
    
static voidsetInterpolator(java.lang.Object transition, java.lang.Object timeInterpolator)

        ((Transition) transition).setInterpolator((TimeInterpolator) timeInterpolator);
    
static voidsetStartDelay(java.lang.Object transition, long startDelay)

        ((Transition)transition).setStartDelay(startDelay);
    
static voidsetTransitionListener(java.lang.Object transition, TransitionListener listener)

        Transition t = (Transition) transition;
        t.addListener(new Transition.TransitionListener() {

            @Override
            public void onTransitionStart(Transition transition) {
                listener.onTransitionStart(transition);
            }

            @Override
            public void onTransitionResume(Transition transition) {
            }

            @Override
            public void onTransitionPause(Transition transition) {
            }

            @Override
            public void onTransitionEnd(Transition transition) {
                listener.onTransitionEnd(transition);
            }

            @Override
            public void onTransitionCancel(Transition transition) {
            }
        });