When using the screen, activity.recreate () blinks black for 0.5 seconds.

When the activity.recreate () screen blinks black for 0.5 seconds, is there any way to enable it so that it does not blink. Or make the entire screen fade to black before using the activity.recreate () function?

+7
java android android-activity
source share
1 answer

Try to make 2 layouts, 1 with welcome views, and the other - all elements are visible and use setContentView(layoutId); to switch between them, if you have listeners on user interface elements, move the installed listeners from onCraete() to onResume() and name it when switching layouts

0
source share

All Articles