Example usage for android.view Window setSharedElementExitTransition

List of usage examples for android.view Window setSharedElementExitTransition

Introduction

In this page you can find the example usage for android.view Window setSharedElementExitTransition.

Prototype

public void setSharedElementExitTransition(Transition transition) 

Source Link

Document

Sets the Transition that will be used for shared elements after starting a new Activity before the shared elements are transferred to the called Activity.

Usage

From source file:Main.java

public static void setSharedElementExitTransition(Window window, Transition transition) {
    if (transition == null) {
        return;/*from ww  w. j a  v a  2  s  .com*/
    }
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        window.setSharedElementExitTransition(transition);
    }
}