List of usage examples for android.view Window setReenterTransition
public void setReenterTransition(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 ww w .j a v a 2 s.com }