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

TransitionHelper

public final class TransitionHelper extends Object
Helper for view transitions.
hide

Fields Summary
public static final int
FADE_IN
public static final int
FADE_OUT
public static final int
SLIDE_LEFT
public static final int
SLIDE_TOP
public static final int
SLIDE_RIGHT
public static final int
SLIDE_BOTTOM
private static final TransitionHelper
sHelper
TransitionHelperVersionImpl
mImpl
Constructors Summary
private TransitionHelper()

        if (Build.VERSION.SDK_INT >= 21) {
            mImpl = new TransitionHelperApi21Impl();
        } else  if (systemSupportsTransitions()) {
            mImpl = new TransitionHelperKitkatImpl();
        } else {
            mImpl = new TransitionHelperStubImpl();
        }
    
Methods Summary
public voidaddTarget(java.lang.Object transition, android.view.View view)

        mImpl.addTarget(transition, view);
    
public voidaddTransition(java.lang.Object transitionSet, java.lang.Object transition)

        mImpl.addTransition(transitionSet, transition);
    
public java.lang.ObjectcreateAutoTransition()

        return mImpl.createAutoTransition();
    
public java.lang.ObjectcreateChangeBounds(boolean reparent)

        return mImpl.createChangeBounds(reparent);
    
public java.lang.ObjectcreateDefaultInterpolator(android.content.Context context)

        return mImpl.createDefaultInterpolator(context);
    
public java.lang.ObjectcreateFadeTransition(int fadeMode)

        return mImpl.createFadeTransition(fadeMode);
    
public java.lang.ObjectcreateScale()

        return mImpl.createScale();
    
public java.lang.ObjectcreateScene(android.view.ViewGroup sceneRoot, java.lang.Runnable r)

        return mImpl.createScene(sceneRoot, r);
    
public java.lang.ObjectcreateSlide(int slideEdge)

        return mImpl.createSlide(slideEdge);
    
public java.lang.ObjectcreateTransitionSet(boolean sequential)

        return mImpl.createTransitionSet(sequential);
    
public voidexclude(java.lang.Object transition, int targetId, boolean exclude)

        mImpl.exclude(transition, targetId, exclude);
    
public voidexclude(java.lang.Object transition, android.view.View targetView, boolean exclude)

        mImpl.exclude(transition, targetView, exclude);
    
public voidexcludeChildren(java.lang.Object transition, int targetId, boolean exclude)

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

        mImpl.excludeChildren(transition, targetView, exclude);
    
public java.lang.ObjectgetEnterTransition(android.view.Window window)

        return mImpl.getEnterTransition(window);
    
public java.lang.ObjectgetExitTransition(android.view.Window window)

        return mImpl.getExitTransition(window);
    
public static android.support.v17.leanback.transition.TransitionHelpergetInstance()
Returns the TransitionHelper that can be used to perform Transition animations.

        return sHelper;
    
public java.lang.ObjectgetReenterTransition(android.view.Window window)

        return mImpl.getReenterTransition(window);
    
public java.lang.ObjectgetReturnTransition(android.view.Window window)

        return mImpl.getReturnTransition(window);
    
public java.lang.ObjectgetSharedElementEnterTransition(android.view.Window window)

        return mImpl.getSharedElementEnterTransition(window);
    
public java.lang.ObjectgetSharedElementExitTransition(android.view.Window window)

        return mImpl.getSharedElementExitTransition(window);
    
public java.lang.ObjectgetSharedElementReenterTransition(android.view.Window window)

        return mImpl.getSharedElementReenterTransition(window);
    
public java.lang.ObjectgetSharedElementReturnTransition(android.view.Window window)

        return mImpl.getSharedElementReturnTransition(window);
    
public voidinclude(java.lang.Object transition, int targetId)

        mImpl.include(transition, targetId);
    
public voidinclude(java.lang.Object transition, android.view.View targetView)

        mImpl.include(transition, targetView);
    
public java.lang.ObjectloadTransition(android.content.Context context, int resId)

        return mImpl.loadTransition(context, resId);
    
public voidrunTransition(java.lang.Object scene, java.lang.Object transition)

        mImpl.runTransition(scene, transition);
    
public voidsetChangeBoundsDefaultStartDelay(java.lang.Object changeBounds, int startDelay)

        mImpl.setChangeBoundsDefaultStartDelay(changeBounds, startDelay);
    
public voidsetChangeBoundsStartDelay(java.lang.Object changeBounds, android.view.View view, int startDelay)

        mImpl.setChangeBoundsStartDelay(changeBounds, view, startDelay);
    
public voidsetChangeBoundsStartDelay(java.lang.Object changeBounds, int viewId, int startDelay)

        mImpl.setChangeBoundsStartDelay(changeBounds, viewId, startDelay);
    
public voidsetChangeBoundsStartDelay(java.lang.Object changeBounds, java.lang.String className, int startDelay)

        mImpl.setChangeBoundsStartDelay(changeBounds, className, startDelay);
    
public voidsetDuration(java.lang.Object transition, long duration)

        mImpl.setDuration(transition, duration);
    
public voidsetInterpolator(java.lang.Object transition, java.lang.Object timeInterpolator)

        mImpl.setInterpolator(transition, timeInterpolator);
    
public voidsetStartDelay(java.lang.Object transition, long startDelay)

        mImpl.setStartDelay(transition, startDelay);
    
public voidsetTransitionListener(java.lang.Object transition, TransitionListener listener)

        mImpl.setTransitionListener(transition, listener);
    
public static booleansystemSupportsEntranceTransitions()
Returns true if system supports entrance Transition animations.

        return Build.VERSION.SDK_INT >= 21;
    
public static booleansystemSupportsTransitions()
Gets whether the system supports Transition animations.

return
True if Transition animations are supported.


                       
        
        if (Build.VERSION.SDK_INT >= 19) {
            // Supported on Android 4.4 or later.
            return true;
        }
        return false;