I am working on image transition effect while two activities using the new shared elements from lollipop OS. It's working but I get a distorted white blinking on the screen during the transition and I can't find how to implement a solution for this issue.
After doing lots of R&D, i found Same kind of issue here :
Please help me. thanks in advance !!
To implement a blink effect on the image transition between Android activities, you can use the following code:
Code snippet
This code will first get the image from the first activity. Then, it will create a
Transitionobject and set its duration and interpolator. Next, it will set theTransitionobject's image to theimageView. Finally, it will start theTransitionobject and start the second activity.The
Transitionobject will cause theimageViewto blink for 1000 milliseconds before starting the second activity.To use this code, you need to add the following dependency to your project's
build.gradlefile:Code snippet
You also need to add the following code to your project's
activity_main.xmlfile:Code snippet
This code will add an
ImageViewwidget to theactivity_main.xmlfile. TheImageViewwidget will be used to display the image that is being blinked.