I have been searching the web trying to find a simple implementation of an ActionBar. I have an activity that I need to show a menu on and I've overridden:
public override bool OnCreateOptionsMenu(Android.Views.IMenu menu)
{
this.MenuInflater.Inflate(Resource.Menu.main_menu, menu);
return true;
}
Here is my main_menu.xml:
<?xml version="1.0" encoding="utf-8"?> < menu xmlns:android="http://schemas.android.com/apk/res/android"> < item android:id="@+id/mnuEditTeam" android:title="Edit Team" /> < /menu>
I'm using Holo.Light theme since I can't seem to figure out how to get the Light theme to work with ActionBar (I get a null reference exception when trying to access it).
Is there a simple sample out there that shows how I can accomplish this? I don't want to use tabs, just a simple menu.