Hello,
Can you tell me how to reduce custom or default splash screen time?
No, you cannot reduce custom or defalut splash screen time, From the android 12, the android will use the SplashScreen Api to show the splash screen. It only customizes these parts: icon, window background, exit animation.
However, here is a workaround to make the default splash screen to transparent.
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. I add
<?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.