Example usage for android.app SharedElementCallback NULL_CALLBACK

List of usage examples for android.app SharedElementCallback NULL_CALLBACK

Introduction

In this page you can find the example usage for android.app SharedElementCallback NULL_CALLBACK.

Prototype

SharedElementCallback NULL_CALLBACK

To view the source code for android.app SharedElementCallback NULL_CALLBACK.

Click Source Link

Usage

From source file:android.app.FragmentState.java

/**
 * When custom transitions are used with Fragments, the enter transition callback
 * is called when this Fragment is attached or detached when not popping the back stack.
 *
 * @param callback Used to manipulate the shared element transitions on this Fragment
 *                 when added not as a pop from the back stack.
 *//* w  w w  . j  av  a 2  s.c o  m*/
public void setEnterSharedElementCallback(SharedElementCallback callback) {
    if (callback == null) {
        callback = SharedElementCallback.NULL_CALLBACK;
    }
    mEnterTransitionCallback = callback;
}

From source file:android.app.FragmentState.java

/**
 * When custom transitions are used with Fragments, the exit transition callback
 * is called when this Fragment is attached or detached when popping the back stack.
 *
 * @param callback Used to manipulate the shared element transitions on this Fragment
 *                 when added as a pop from the back stack.
 *//*w  w w. j  a v  a2 s  . co  m*/
public void setExitSharedElementCallback(SharedElementCallback callback) {
    if (callback == null) {
        callback = SharedElementCallback.NULL_CALLBACK;
    }
    mExitTransitionCallback = callback;
}