Blinking screen on image transition between activities Blinking screen on image transition between activities android android

Blinking screen on image transition between activities


On the exiting activity, callgetWindow().setExitTransition(null);

On the entering activity, callgetWindow().setEnterTransition(null);

It will prevent the fade out of the exiting activity and the fade in of the entering activity, which removes the apparent blinking effect.


I solved this issue by changing background color of my default theme, hope this is still can help to someone save the time.

<item name="android:windowBackground">@color/black</item><item name="android:colorBackground">@color/black</item>


The "white blinking" you are seeing is the result of the two activities alpha-animating in and out during the transition: when activity A starts activity B, activity A fades out and activity B fades in.

If you want to prevent the status bar and/or navigation bar from fading during the transition (and thus reducing the "blinking" effect a bit), you can look at this post.