Java tutorial
//package com.java2s; //License from project: Apache License import android.os.Build; import android.transition.Transition; import android.view.Window; public class Main { public static void removeListener(Window window, Transition.TransitionListener listener) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { window.getEnterTransition().removeListener(listener); } } }