List of usage examples for android.view Window setAllowReturnTransitionOverlap
public void setAllowReturnTransitionOverlap(boolean allow)
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); }// w w w. java 2 s . co m }