I'm working in a custom Transition
to animate only the visible part of the Shared View
in case it is partially visible.
In my case this happens because the Shared View
is inside a ConstraitLayout
, and the ConstraitLayout
inside a ScrollView
.
I mentioned this problem in another question: Shared element transition - animate only the visible part of the shared view
This is the defaul transition
choose by the system:
And this is the one where I'm working:
The animation itself works well ... But the problem is the system draws the full shared view, before the animation starts... and there is an ugly blink.
How can I prevent that?
I have already on my style:
<item name="android:windowSharedElementsUseOverlay">false</item>
In your target Activity, add an ActionBar like the one in the source Activity, so that it naturally covers the same of your shared element. You might need to pass extras between Activities to configure the target ActionBar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With