skydoves / TransformationLayout

🌠 Transform between two Views, Activities, and Fragments, or a View to a Fragment with container transform animations for Android.
Apache License 2.0
2.35k stars 190 forks source link

Animation flashes when background is white #17

Closed fefereliezer closed 3 years ago

fefereliezer commented 3 years ago

I'm using the animation from a button to an Activity, I tried both examples (with and without a bundle) as described in the readme, and when the background of the destination activity is dark (as all the examples are), it works fine, but when I leave the destinations activity background blank (white) it flashes for a moment.

skydoves commented 3 years ago

It is related to this issue. It's recommended to use 1.0.2 ~ 1.0.4 for avoiding the issue.

fefereliezer commented 3 years ago

Thanks for the fast response! I tried it with versions 1.0.2 ~ 1.0.4 and it crashes at TransitionExtensionKt.onTransformationStartContainer(this); in the first activity.

 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/material/transition/MaterialContainerTransformSharedElementCallback;
        at com.skydoves.transformationlayout.TransitionExtensionKt.onTransformationStartContainer(TransitionExtension.kt:31)
skydoves commented 3 years ago

Use the material dependency version 1.2.0-alpha06.

fefereliezer commented 3 years ago

Thanks, it's much better, but the image is still doubled as seen in the 2nd image

skydoves commented 3 years ago

Please set any background color for your second activity.

fefereliezer commented 3 years ago

Thanks! It worked! (any color except transparent)