I have two activities: A
and B
. Both have a ViewPager of images.
There is a shared activity transition with the "current" image as shared element. For example if user scrolls to the third image, the shared element name is image_2
.
To execute the transition I just call:
ActivityCompat.startActivityForResult(activity, intent, requestCode,
ActivityOptionsCompat.makeSceneTransitionAnimation(activity, sharedElements)
.toBundle());
This works perfectly.
I would like to add a custom exit transition for A
(the caller activity). The latter should just fade-out another view.
How can I achieve this goal?