Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Can not find the menu folder under resources

$
0
0

Hello everyone!

I have combed the internet like crazy and found some people with the same issue. They seem to be able to solve it with a simple rebuild. I am not, though. I have added a folder named "menu" under "Resource". Inside the menu-folder i have added a file called "mymenu.xml". Well, when i try to write:

public override bool OnPrepareOptionsMenu(IMenu menu)
{
MenuInflater.Inflate(Resource.Menu.mymenu, menu);
return base.OnPrepareOptionsMenu(menu);
}

It stops on Resource. Writing menu only gets me a "does not contain a definition for menu". I have tried rebuilding and every tip ive seen online. Have anyone encountered this? Does anyone know if its fixable? I have tested the same procedure in other projects, and i get the same issue. Im sure im overlooking something really simple, but ive been struggling for 2 days now. Any help is deeply appreciated!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>