Hero View's Position Calculated Wrongly During Shared Element Transition
Asked Answered
S

0

7

I have two activities, Toolbars and CoordinatorLayouts in both of them.

Toolbars can be hidden by scrolling, thanks to CoordinatorLayout.

I'm trying to make a shared element transition between them and these are the steps I've taken so far:

  • Set an image view as hero view.
  • Set toolbar, navigationbar and status bar as hero too, to avoid an overlay issue.

Here is my problem:

When shared element animation starts, hero toolbar slides from up to down leading to whole screen move up to down.

Because hero imageview's position is calculated before this animation, it flashes to its final position after a move animation.

Is there a way to let animator calculate the imageview's final position correctly?

I'm not sure that I have addressed my problem sufficiently, so I can provide extra information with comments.

Sorry for long question.

Thanks in advance.

Skolnik answered 22/9, 2015 at 15:9 Comment(2)
Are you able to fix this issue. I am also facing same. Please replyOntologism
Unfortunately no, sorry. I eventually changed the way I animate views.Skolnik

© 2022 - 2024 — McMap. All rights reserved.