The overridePendingTransition(int, int) method provides a way to animate between activities using the animation XML resources.
But what if We need to assign an AnimationSet (a bunch of animations that might even include a java animation too) as its arguments?
In other word how can we apply AnimationSets for transitions between activities?
I have managed to achieve that by using themes in my app.
Specifically by changing this style in a theme:
and overriding style Animation.Activity:
You can define your animation sets in XML and reference them in this style.