I have two activities: Toolbars and Coordinators. In both cases.
Toolbars can be hidden by scrolling thanks to CoordinatorLayout.
I am trying to make a general transition between them between them, and these are the steps that I have done so far:
- Set the image representation as a hero.
- Set the toolbar, navigation bar and status bar as a hero to avoid overlay problems.
Here is my problem:
When the animation of the shared element begins, the heroβs toolbar slides from a height down, causing the entire screen to move up.
As the position of the heroβs image is calculated before this animation, it starts blinking to the end position after the move animation.
Is there a way to let the animator correctly calculate the final position of the image?
I'm not sure that I have examined my problem in sufficient detail, so I can provide additional information with comments.
Sorry for the long question.
Thanks in advance.
android animation android-toolbar shared-element-transition coordinator-layout
SafaOrhan
source share