Example usage for android.app Fragment setSharedElementEnterTransition

List of usage examples for android.app Fragment setSharedElementEnterTransition

Introduction

In this page you can find the example usage for android.app Fragment setSharedElementEnterTransition.

Prototype

public void setSharedElementEnterTransition(Transition transition) 

Source Link

Document

Sets the Transition that will be used for shared elements transferred into the content Scene.

Usage

From source file:com.kogitune.activitytransition.fragment.FragmentTransitionLauncher.java

public void prepare(Fragment toFragment) {
    final Bundle transitionBundle = TransitionBundleFactory.createTransitionBundle(context, fromView, bitmap);
    if (Build.VERSION.SDK_INT >= 21) {
        toFragment.setSharedElementEnterTransition(new ChangeBounds());
        toFragment.setSharedElementReturnTransition(new ChangeBounds());
    }/*w  ww .  j a va  2s. c om*/
    toFragment.setArguments(transitionBundle);
}

From source file:com.kogitune.activitytransition.fragment.FragmentTransitionLauncher.java

public void prepare(android.support.v4.app.Fragment toFragment) {
    final Bundle transitionBundle = TransitionBundleFactory.createTransitionBundle(context, fromView, bitmap);
    if (Build.VERSION.SDK_INT >= 21) {
        toFragment.setSharedElementEnterTransition(new ChangeBounds());
        toFragment.setSharedElementReturnTransition(new ChangeBounds());
    }/*from   w ww . j  a  v  a 2 s  .co m*/
    toFragment.setArguments(transitionBundle);
}