79288743

Date: 2024-12-17 16:59:23
Score: 1
Natty:
Report link

What you provided is not a menu layout, but a navigation graph. These are not related things. You need to ceate a my_menu_name.xml file with <menu> and <item> elements. Then, inside Fragment class, you have to implement a MenuProvider like explained here: https://stackoverflow.com/a/71965674/1860868

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What you
  • High reputation (-1):
Posted by: Derek K