Android中去掉APP启动时白屏问题

1、在values下的strles.xml中添加样式

<!--1:自定义主题-->
    <style name="LauncherTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowBackground">@drawable/img_easy_splash</item>
        <item name="android:windowActivityTransitions">true</item>
        <item name="android:windowContentTransitions">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowFullscreen">true</item>

2、修改清单文件中 <application 标签中的theme属性为@style/LauncherTheme

 android:theme="@style/LauncherTheme"

  

原文地址:https://www.cnblogs.com/changyiqiang/p/15209317.html