Example usage for android.view Window getEnterTransition

List of usage examples for android.view Window getEnterTransition

Introduction

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

Prototype

public Transition getEnterTransition() 

Source Link

Document

Returns the transition used to move Views into the initial scene.

Usage

From source file:Main.java

public static void removeListener(Window window, Transition.TransitionListener listener) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        window.getEnterTransition().removeListener(listener);
    }//  w  w  w.  j  av  a  2 s. co m
}

From source file:Main.java

public static void addListener(Window window, Transition.TransitionListener listener) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        window.getEnterTransition().addListener(listener);
    }/*from   w w  w .  ja va  2s.  c  om*/
}