Forum Xamarin.Forms

Splash Screen With Image and Text

CiroORICCiroORIC BRMember ✭✭

Hi there!

I'm trying to create a splash screen with image and text.

There are several samples on the net. I'm trying to reproduce some of them with no success. I only got blank screen.

My device is running SANSUNG Android 6.0.1

My code is:

THEME (file ... Resources\values\styles.xml)

LAYOUT (file ... Resources\layout\splash_screen_text.xml)

ACTIVITY (file SplashScreenTextActivity.cs)

Any idea?

Best Answer


  • YelinzhYelinzh Member, Xamarin Team Xamurai

    I'm trying to reproduce some of them with no success. I only got blank screen.

    Because you didn't specify the windowBackground in style.xml. You need to create a drawable for splash screen and implement a theme.

    <style name="MyTheme.Splash" parent ="Theme.AppCompat.Light.NoActionBar">
      <item name="android:windowBackground">@drawable/splash_screen</item>


    <?xml version="1.0" encoding="utf-8"?>
    <layer-list xmlns:android="">
        <color android:color="@color/splash_background"/>

    Check the tutorial:

  • CiroORICCiroORIC BRMember ✭✭

    Jarvan, thanks to reply.

    Note, I'm not using layer-list as layout for splash screen. I using LinearLayout because I need to put image and text in my splash screen.

    Any suggestion?

  • CiroORICCiroORIC BRMember ✭✭

    After add the task "SimulateStartup" the problem was solved.

    I was calling StartActivity(new Intent(Application.Context, typeof(MainActivity))); not as as Task.

    Thank you Jarvan!

  • 15mgm1515mgm15 USMember ✭✭✭✭

    @Jarvan Is there a way I can skip the layer-list .xml and show directly the .axml file?

Sign In or Register to comment.