Re: [mono-android] Menus

2011-11-29 Thread Jonathan Pryor
On Nov 28, 2011, at 11:05 AM, nodoid wrote: > Is there an example anywhere on how to create a menu for an application from > the menu button? I can't seem to find one. You override Activity.OnCreateOptionsMenu(). The SkeletonApp sample does this: https://github.com/xamarin/monodroid-sam

Re: [mono-android] Menus

2011-11-29 Thread jheerman
Greg Shackles also has some great Mono for Android code samples available on Github. I'm pretty sure there's an example out there for creating menus. https://github.com/gshackles/Sample-Projects/tree/master/MonoDroid/MonoDroidSamples -- View this message in context: http://mono-for-android.1047

Re: [mono-android] Menus

2011-11-29 Thread jheerman
I've attached some sample code for implementing an option menu. Create a folder under resources called "menu". Then create a new xml file similar to the main_menu file attached. Be sure to change the build action on the xml file to "AndroidResource". See the attached MyActivity class to imple

[mono-android] Menus

2011-11-29 Thread nodoid
Hi, Is there an example anywhere on how to create a menu for an application from the menu button? I can't seem to find one. Paul -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Menus-tp5029246p5029246.html Sent from the Mono for Android mailing list archive at Nab