Statusbar color on SplashScreen

NickNN 40 Reputation points
2023-12-21T11:02:29.5766667+00:00

Hi, I'm trying change the status bar background color. In app views the change works, but on splash screen not work.

I've followed this tutorial (https://blog.ewers-peters.de/lets-customize-the-splash-screen-of-a-maui-app), in which the author creates custom themes for that, but I got this error:

ATP2260 resource style/MyTheme not found

Any Ideas?

Thanks

Developer technologies | .NET | .NET MAUI
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2023-12-22T02:48:09.5733333+00:00

    Hello,

    ATP2260 resource style/MyTheme not found

    After testing, this issue can be successfully reproduced.

    The solution is that you need to change the Build Action of colors.xml and styles.xml.

    Right-click on the xml file, select Properties, and set the Build Action to AndroidResource.

    Best Regards,

    Alec Liu.


    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.


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.