I am currently trying to go full-screen during my splash-screen Activity
. I am doing that with a style
, which is set on the Activity
like this:
style.xml
<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowBackground">@drawable/background_splash</item>
</style>
AndroidManifest.xml
<activity
android:name=".Activities.SplashScreenActivity"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
You might suggest doing that programmatically, but I already tried all the answers from this, this, this, this, this and this link. Currently, none of the programmatic solutions work for me - put every suggested fix in either onResume
or onCreate
of my splashActivity.java
, but the status and navigation bar were still visible. However, when using my custom style
it hides only the status bar, the navigation bar stays visible. What I've tried so far in the xml files: used different parents of the style, used no background drawable, removed screenOrientation
and noHistory
from activity
. I am pretty sure I'm missing something here, but I can't see what. Can share more code if needed. Thanks in advance!