I use Android L transitions by passing the ActivityOptions package in intent. How can I play an animation with the same intent using TaskStackBuilder ?
This is my current working method with one Intent :
startActivity(myIntent, ActivityOptions.makeSceneTransitionAnimation(this).toBundle());
This is my attempt using TaskStackBuilder :
TaskStackBuilder builder = TaskStackBuilder.create(this); builder.addNextIntentWithParentStack(myIntent); builder.startActivities(ActivityOptions.makeSceneTransitionAnimation(this).toBundle());
But the animation creates a strange effect, and not the same as in the single-purpose version.
I also tried:
builder.addNextIntent(myIntent);
instead:
builder.addNextIntentWithParentStack(myIntent);
android android-intent animation taskstackbuilder
Giorgio Antonioli Nov 24 '15 at 12:00 2015-11-24 12:00
source share