It works for me, I’m using a theme with white background:
<color name="white">#FFFFFFFF</color>
<style name="SplashTheme" parent="android:style/Theme.NoTitleBar.Fullscreen">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowBackground">@color/white</item>
</style>
Please note: using a drawable in your splashscreen is not advised (Google recommends against it), because there is no way to keep the ratio using android:windowBackground. Instead, it’s better to have a dominant color (or transparent, some apps like Skype seem to do that), then show a proper splashscreen image using Java code (bonus: you can add a fade in transition).
I found the best splashscreen is to:
- have a style on your main activity which defines the main color (white for me)
- have an Android layout with same style and an ImageView. FadeIn the ImageView during onCreate
- make the C++ code discard the splashscreen once your first scene is loaded (to avoid having a black screen between splashscreen and first scene). Some people use a fixed timer, but that’s bad practice in my opinion. Just enforce a minimum duration so that FadeIn transition is finished.