A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
On Android, .NET MAUI will only show the custom splash screen if all of the following are true:
- The splash image is correctly registered as a MAUI splash screen resource.
- The Android activity/manifest is using
Maui.SplashTheme. - The file name complies with Android resource naming rules.
Check these points:
- Confirm the resource and build action
- The splash file should be under
Resources\Splash\and have build action MauiSplashScreen. - In the project file it should look like:
<ItemGroup> <MauiSplashScreen Include="Resources\Splash\splash.png" BaseSize="128,128" /> </ItemGroup> - Ensure there is no other
<MauiSplashScreen ...>entry pointing to a different image that could override this.
- The splash file should be under
- Ensure the file name is Android‑valid
- Android resource naming rules apply to splash screen files: the file name must be lowercase, start and end with a letter, and contain only letters, digits, or underscores.
- For example,
splash.pngis valid;Splash.png,splash-screen.png, or******@2x.pngcan cause Android to fall back to the default purple splash.
- Verify the Android theme is not overridden
- MAUI uses
Maui.SplashThemeby default to show the splash screen. If the activity or manifest overrides the theme, Android may ignore the MAUI-generated splash and show the default. -
MainActivityshould look like:[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)] public class MainActivity : MauiAppCompatActivity { } - In
Platforms/Android/AndroidManifest.xml, the<application>element should not set a different theme that replacesMaui.SplashTheme.
- MAUI uses
- Clean and rebuild
- After fixing naming or theme issues, perform a Clean and then Rebuild, and if needed uninstall the app from the emulator/device so the new resources are picked up.
If the image is correctly registered as MauiSplashScreen, the file name follows Android rules, and Maui.SplashTheme is used, Android will use the specified splash instead of the default purple screen.
References: