Solution to splash application startup white screen problem in Android
Not long ago, the project started for some time. At first, it was suspected that it was caused by the newly added instant run function in Android studio, so it was found that there was still such a problem after re typing the release package. It suddenly occurred to me that Yunxin was integrated last time, Therefore, I guess it may be caused by the initialization operation in the application after adding Yunxin and some initialization time-consuming operations on the main interface of homeactivity. Therefore, we try to eliminate the white screen. See the following two schemes:
1. Add such an item to the theme style of the interface that starts the activity
Create splash in the drawable directory
Customize this background image to your own startup image.
2. Add directly in style
Windowsistranslucent and windowsnotitle. Set these two properties to true to make the program transparent during initialization. After initialization, the main interface of the program will be displayed, so you can't see the white screen interface at all.
Basically, there are the above two solutions. The first solution can quickly come out of the application startup interface after clicking, but the user needs to wait for a period of time to enter. The second solution will click the icon on the desktop and wait for splash to appear. It will not come out until the application initialization is completed. The two have their own advantages. The specific one depends on your needs. I recommend the first one, which has a better user experience.
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.