MAUI - Display Alert & Calendar Buttons Invisible

Adam Hilton 6 Reputation points
2022-10-24T12:55:47.5+00:00

I recently converted a Xamarin Forms app to MAUI. One of the [many] issues I'm running into is that the display alert and calendar buttons are invisible when compiled for Android. They're still there. I can click on them. I just can't see them.

253505-image.png
253549-image.png

The buttons are visible when compiling for Windows Machine though. I can also create a new, blank MAUI app and the buttons are there. Thoughts?

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

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 75,351 Reputation points Microsoft Vendor
    2022-10-25T06:14:15.797+00:00

    Hello,

    I'm running into is that the display alert and calendar buttons are invisible when compiled for Android. They're still there. I can click on them. I just can't see them.

    Please open your Platforms folder->Android folder->Resources->values->color.xml.

    Change the value of <color name="colorPrimary">#FFFFFF</color>, you can set the value from #FFFFFF to #FF0000. If it does not work, please share your code in styles.xml.

    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.


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.