Hello,
On Android 12, it's not allowed to get rid of the splash screen. It is only possible to customize it: icon, window background, exit animation. Here is a document about Android 12 splash screen.
But here is a workaround, you can make the splash screen from the android to transparent.
By default, the splash screen is shown from user touch until the first frame of your application is drawn, so to minimize the time during which the splash screen is shown, you can try to reduce the launch time of your application.
Firstly, please create a styles.xml
(set the build action to AndroidResource) in the Platforms/Android/Resources/values
folder and add following code in it.
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MainTheme" parent="Maui.SplashTheme">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowSplashScreenAnimationDuration">0</item>
</style>
</resources>
Open the MainActivity.cs
, change the value of Theme
to Theme = "@style/MainTheme"
.
For windows platform, there are no splash screen by default.
For iOS platform, please do not remove <SplashScreen>
tag in the csproj file to implement, your layout will be compressed. Because iOS application starts from the splashstoryboard. If you remove it, the application cannot find correct layout size to renderer, it will find the default one automatically.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.