.NET MAUI Splash Screen with MauiSplashScreen
Verified againstMicrosoft Learn: Add a splash screen to a .NET MAUI app (docs-maui source),Microsoft Learn: .NET MAUI troubleshooting (docs-maui source),Microsoft.Maui.Resizetizer on NuGet,.NET MAUI app template project file,Android splash screenson November 4, 2026.
In .NET MAUI the splash screen is one build item in your project file: <MauiSplashScreen Include="..." Color="..." BaseSize="..." />. At build time MAUI's Resizetizer turns that single image into an Android splash drawable and an iOS launch storyboard, so you never hand-place per-platform files. The image should be a small centered mark, not a full-screen picture, because that is how both platforms draw it.
The MauiSplashScreen item
The current MAUI template ships this line in the .csproj. Dropping an image into Resources\Splash sets its build action to MauiSplashScreen automatically; an image elsewhere needs the build action set by hand in the Properties window.
<ItemGroup>
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
</ItemGroup>| Attribute | What it does |
|---|---|
Include | Path to the source image. SVG, PNG and the other standard platform formats work. |
Color | Background color behind the image. Hex such as #0f0f11, or a named color such as Red. |
BaseSize | W,H of the image at a 1.0 scale factor. Every platform size is derived from it. |
TintColor | Recolors the image. Useful for a single color glyph you want in a different color. |
Resize | false stops a vector image being resized. |
File names must follow Android resource rules: lowercase, start and end with a letter, and only letters, digits and underscores. Splash-Logo.png fails the build; splash_logo.png works.
How MAUI resizes the image
BaseSize is the size you would use in code at 1x. Microsoft's example: a 210x260 image with BaseSize="424,520" is first scaled to 424x520, then scaled from there to each platform density. The rules differ by format:
- SVG: if you omit
BaseSize, the dimensions in the SVG itself are the base size. MAUI converts SVGs to PNGs at build time, so reference them with a.pngextension anywhere outside the project file. - PNG or JPG: if you omit
BaseSize, the image is not resized at all. A 1080 pixel PNG with noBaseSizeends up enormous on high density screens or tiny on low ones. - Upscaling bitmaps blurs them. Microsoft's guidance is to use SVG where possible. If you must use PNG, make the source at least
BaseSizetimes the highest density you target.
A BaseSize of 128,128 gives a mark roughly the size of an app icon. Most splash bugs in MAUI come from treating BaseSize as a pixel size for the whole screen. It is not: the platforms place the image in the center on top of Color.
What each platform generates
| Platform | Output | Do not |
|---|---|---|
| Android | Resources/values/maui_colors.xml and Resources/drawable/maui_splash_image.xml, applied through the Maui.SplashTheme theme. | Set a different theme on MainActivity or in the manifest. |
| iOS | MauiSplash.storyboard, set as UILaunchStoryboardName in Info.plist. | Set UILaunchStoryboardName yourself or add a LaunchScreen.storyboard. |
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation |
ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
public class MainActivity : MauiAppCompatActivity
{
}Android 12 and later
On Android 12 (API 31) and later, MAUI's splash shows as an icon centered on screen, because Android draws every launch through the system Splash Screen API. Android sizes that icon like an adaptive icon: without an icon background it is 288x288 dp and has to fit inside a 192 dp circle; with an icon background it is 240x240 dp inside a 160 dp circle. Whatever sits outside the circle is masked.
In practice: keep the important part of your splash art in the middle two thirds of the canvas, leave the corners empty, and make Color match the background of your first page so there is no visible jump when the splash dismisses. A wordmark wider than it is tall loses its ends on Android 12+.
Design the splash before you write the csproj
Pick the background color and layout in the Splash Screen Generator, then export PNGs at real device sizes.
Using the generator's output with MAUI
The Splash Screen Generator exports full-screen portrait PNGs: 1080x2400 for Android xxhdpi, 1290x2796 for the 6.7 inch iPhone, and so on (all sizes are in the splash screen sizes reference). Those are the wrong shape for MauiSplashScreen, which centers one image on a color. Use the tool for the parts MAUI does not cover:
- Pick the background color in the generator and copy the same hex into
Color, so the launch screen and the designed first frame agree. - Build an in-app intro page that shows after launch. Export the PNG at the size of your main test device for the static frame, and the animated GIF as the reference for whoever animates it in XAML.
- Keep the MauiSplashScreen item small: a transparent SVG of your logo,
BaseSizearound128,128, andColorset to the background.
Common issues
- Splash fills the screen or is a tiny dot. A PNG with no
BaseSize, so it was not resized. AddBaseSizeor switch to SVG. - Blurry logo. A small PNG upscaled to a large
BaseSize. Use SVG. - Build error about the file name. Uppercase letters, hyphens or a leading digit. Rename to lowercase with underscores.
- Old splash still showing after you changed the image. Delete the
binandobjfolders, rebuild, and uninstall the app from the device or simulator before reinstalling. - No splash on the iOS simulator (iOS 16.4+). Microsoft notes simulators do not load a splash screen unless the app is signed.
- Splash missing on Android. Something replaced
Maui.SplashThemeon the launcher activity.
For debugging, the troubleshooting docs describe EnableBlankMauiSplashScreen (a blank splash when you have no MauiSplashScreen item; Microsoft warns it causes store rejection, so test builds only). Microsoft Learn names the property that turns splash processing off EnableSplashScreenProcessing, while the shipped Resizetizer 10.0.120 targets check EnableMauiSplashScreenProcessing. If one does nothing in your build, try the other.
Related
Frequently asked questions
Can a .NET MAUI splash screen be animated?
Not through MauiSplashScreen, which produces a static image. Show a static splash, then animate on your first page after the app has started.
Should I use SVG or PNG for MauiSplashScreen?
SVG where you can. MAUI converts it to PNG at every size it needs, so it stays sharp. A PNG is only resized when you set BaseSize, and it blurs when scaled up.
Why is my MAUI splash screen different on Android 12?
Android 12 and later draw the launch splash with the system Splash Screen API, which shows a centered icon masked to a circle on a solid color. Keep your art centered and well inside the edges.
Where do I set the MAUI splash background color?
On the item itself: Color="#0f0f11" on the MauiSplashScreen line in your .csproj. Named colors like Red also work.