Even if this post is rather old, I had a similar experience when implementing the SplashScreen and could resolve this by updating the style/theme of the SplashScreen. The screen @frederico m rinaldi sometimes sees is commonly created by using Android's default (Holo) theme.
Although you didn't supply the style applied to the SplashScreen (see Theme = @style/Theme.Splash
of the accepted answer) , here's mine. Maybe you can check if they differ.
<style name="Theme.Splash" parent ="Theme.AppCompat.Light.NoActionBar">
<!-- Use a fully opaque color as background. -->
<item name="android:windowBackground">@android:color/black</item>
<!-- This removes the title bar seen within the first screen. -->
<item name="windowNoTitle">true</item>
<!-- Let the splash screen use the entire screen space by enabling full screen mode -->
<item name="android:windowFullscreen">true</item>
<!-- Hide the ActionBar (Might be already defined within the parent theme) -->
<item name="windowActionBar">false</item>
</style>
You may notice that I simply use the color black as background, because my SplashScreen uses a custom layout file instead of static image (this.SetContentView(Resource.Layout.SplashScreen);
). Also, loading the image (drawable
) might require some time which may be the main reason you can see the default theme instead of your splash screen.
Additionally, I omitted the android:
XML namespace for some attributes which is due to Google's internal implementation of the Android support library features.
Please note that in order to use the AppCompat themes, your application must include the AppCompat support library and your Activity must subclass Android.Support.V7.App.AppCompatActivity
.