About the black screen
By default, when the program starts, there is a black screen period, because the first activity loads some data, such as initializing the list data.
Removal steps
1./res/values/styles.xml in Theme, add a Android:windowbackgrounds property to set the desired picture
2. In Androidmanifest.xml, set theme to the first startup activity.
3. Add/res/drawable-port/loading.png (if the splash screen of the horizontal screen, please put in/res/drawable-land/loading.png)
4. Complete
Code
<style name= "MyTheme.NoTitleBar.CustomBackground" parent= "@android: Theme.black" > <item name= "Android : Windowbackground "> @drawable/loading</item> <item name=" Android:windownotitle ">true</item > <item name= "Android:windowfullscreen" >true</item> <item name= "Android: Windowcontentoverlay "> @null </item> </style>
<application android:icon= "@drawable/icon" android:label= "@string/app_name" android:debuggable= "true" > <activity android:label= "@string/app_name" android:theme= "@style/mytheme.notitlebar.custombackground" Android:configchanges= "Keyboardhidden|navigation|orientation" Android:name= "Com.test.ui.MainActivity" Android: screenorientation= "Portrait" > <intent-filter> <action android:name= " Android.intent.action.MAIN "> <category android:name=" Android.intent.category.LAUNCHER "> </ category> </action> </intent-filter> </activity> ... ...</application>
Android-Use the theme profile to get rid of the short black screen of the program launch screen