Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WindowEnterTransition Not Affecting Activity Transition

While windowExitTransition is working as expected I cannot get windowEnterTransition to work:

themes.xml

 <item name="android:windowEnterTransition">@android:transition/explode</item>
 <item name="android:windowExitTransition">@android:transition/explode</item>

MainActivity.java

Intent intent = new Intent(MainActivity.this, SubjectActivity.class);
startActivity(intent, ActivityOptionsCompat.makeSceneTransitionAnimation(MainActivity.this).toBundle());

Demo

like image 876
Walid Ammar Avatar asked Jan 28 '15 23:01

Walid Ammar


Video Answer


1 Answers

Be sure to apply the same theme with the specified transitions to both Activities.

like image 80
sockeqwe Avatar answered Oct 13 '22 11:10

sockeqwe