dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.2k stars 1.75k forks source link

Menu Bar - ContentPage.MenuBarItems doesn't render on Android? #25516

Closed antonycartwright closed 4 days ago

antonycartwright commented 1 week ago

Description

According to this article, https://learn.microsoft.com/en-us/dotnet/maui/user-interface/menu-bar?view=net-maui-8.0, making a menu is easy. But for me, it simply does nothing when deployed to my Android phone (but it does work on Windows). Is this a known problem?

Thanks, Antony

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.0-rc.2.24503.2

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

jfversluis commented 4 days ago

The very first line in the linked article says:

A .NET Multi-platform App UI (.NET MAUI) menu bar is a container that presents a set of menus in a horizontal row, at the top of an app on Mac Catalyst and Windows.

So this is only supported on the desktop platforms that we support. This is because there is no equivalent available on the mobile operating systems.