去掉导航栏前:
去掉导航栏后:
一、在项目values目录下的style.xml中添加如下配置:
<style name="SplashTheme" parent="AppTheme">
<item name="windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<!--<item name="android:windowBackground">@mipmap/splash</item>-->
</style>
二、在AndroidManifest.xml中对应的Activity配置添加:
android:theme="@style/SplashTheme"
<activity android:name=".login.LoginActivity"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>