List of usage examples for android.view Window setExitTransition
public void setExitTransition(Transition transition)
From source file:com.fallahpoor.tehranbrt.MainActivity.java
private void setupWindowAnimation() { if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Transition explodeTransition = TransitionInflater.from(this).inflateTransition(R.transition.explode); Window window = getWindow(); window.setReenterTransition(explodeTransition); window.setExitTransition(explodeTransition); window.setAllowReturnTransitionOverlap(false); }//from w w w. j ava 2s . c om }