Example #1
0
 public override bool OnCreateOptionsMenu(IMenu menu)
 {
     ISubMenu sub = menu.AddSubMenu ("Theme");
     sub.Add (0, Resource.Style.Theme_Sherlock, 0, "Default");
     sub.Add (0, Resource.Style.Theme_Sherlock_Light, 0, "Light");
     sub.Add (0, Resource.Style.Theme_Sherlock_Light_DarkActionBar, 0, "Light (Dark Action Bar)");
     sub.Item.SetShowAsAction (MenuItem.ShowAsActionAlways | MenuItem.ShowAsActionWithText);
     return true;
 }
        public override bool OnCreateOptionsMenu(IMenu menu)
        {
            ISubMenu sub = menu.AddSubMenu("Theme");

            sub.Add(0, Resource.Style.Theme_Sherlock, 0, "Default");
            sub.Add(0, Resource.Style.Theme_Sherlock_Light, 0, "Light");
            sub.Add(0, Resource.Style.Theme_Sherlock_Light_DarkActionBar, 0, "Light (Dark Action Bar)");
            sub.Item.SetShowAsAction(MenuItem.ShowAsActionAlways | MenuItem.ShowAsActionWithText);
            return(true);
        }