A white screen or a black screen will appear before the app starts and displays.
This is mainly due to the fact that the view is not populated on time and is resolved as follows:
Add the following code to the style:
<style name= "Splashtheme" parent= "Apptheme" > 1 <!--<item name= "Android:windowbackground" > @drawable/first</item>-->//This line allows you to set a background picture for the window, so that the picture is displayed during the response. 2 <item name= "Android:windowfullscreen" >true</item> 3 <item name= "Windownotitle" >true</item> 4 <item name= "Android:windowistranslucent" >true</item>// Set the window background to transparent so that you don't see white screen during the response, so you don't set the background image. However, there will be a start delay situation. <!--<item name= "Android:windowdisablepreview" >true</item>--> </style >
Then, in the manifest file, set the theme of the startup page to the above theme.
Reference post: HTTP://WWW.JIANSHU.COM/P/09B876B865AC
Android App Launch white screen