I need help about transition between activities:
I have two activities A and B and both have a ViewPager with the same image list. Every page has an ImageView with the transitionName
equals to image_x where x is the page index.
A starts activity B calling ActivityOptionsCompat.makeSceneTransitionAnimation
and the enter transition is totally fine.
The problem is the following: when I close activity B, the exit transition does not initialize the view pager of activity A at the same position of B.
When user closes B, the latter sets the current page position in the result. In onActivityResult
of activity A, I call the setCurrentItem
and the behavior is showed in the gif.
Is there a way to update activity A before the exit transition starts?
interface
between A and B. When you get page change event in B, pass event throughinterface
to A Activity – Bakkerinterface
concept for solution... i hope this will help you – Bakker