For AppCompat , the following solution worked for me:
Add a new theme style without an action bar to styles.xml and set parent="Theme.AppCompat.NoActionBar" .
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimary</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:windowBackground">@color/colorPrimary</item> </style>
Now we implement the same theme style for your screensaver activity in androidManifest.xml
<activity android:name=".ActivityName" android:theme="@style/SplashTheme"> // apply splash them here <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
Here is the result:

Krunal
source share