Hello,
this page how delete
On Android 12 or later, you cannot delete the splash screen. Android use the SplashScreen Api to show the splash screen. It only customizes these parts: icon, window background, exit animation.
But you can make the splashscreen to transparent in the Android platform.
You can do this by create a custom style in the /Platforms/Android/Resources/values
folder. Firstly, create a xml file that called styles.xml
and add custom style in it.
As note: Please make sure the build action of styles.xml
is AndroidResource
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MainTheme" parent="Maui.MainTheme.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
</style>
</resources>
Then, replace theme from Theme = "@style/Maui.SplashTheme" to Theme = "@style/MainTheme"
in the MainActivity.cs
like following code.
[Activity(Theme = "@style/MainTheme", MainLauncher = true...]
public class MainActivity : MauiAppCompatActivity
{
}
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.