How delete MAUI andiroid app frist (.net) text page

Sardorbek Nuriddinov 20 Reputation points
2024-09-07T09:45:13.1666667+00:00

photo_2024-09-07_14-21-37

this page how delete

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,033 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 81,021 Reputation points Microsoft External Staff
    2024-09-09T06:12:41.1333333+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.