Example #1
0
        public override bool OnCreateOptionsMenu(IMenu menu)
        {
            menu.Add("Guardar")
            .SetIcon(Resource.Drawable.compose)
            .SetShowAsAction(MenuItem.ShowAsActionIfRoom | MenuItem.ShowAsActionWithText);

            menu.Add("Buscar")
            .SetIcon(Resource.Drawable.search)
            .SetShowAsAction(MenuItem.ShowAsActionIfRoom | MenuItem.ShowAsActionWithText);

            menu.Add("Actualizar")
            .SetIcon(Resource.Drawable.refresh)
            .SetShowAsAction(MenuItem.ShowAsActionIfRoom | MenuItem.ShowAsActionWithText);

            return(base.OnCreateOptionsMenu(menu));
        }
Example #2
0
		public override bool OnCreateOptionsMenu(IMenu menu) {

			menu.Add ("Guardar")
				.SetIcon (Resource.Drawable.compose)
					.SetShowAsAction (MenuItem.ShowAsActionIfRoom | MenuItem.ShowAsActionWithText);

			menu.Add ("Buscar")
				.SetIcon (Resource.Drawable.search)
					.SetShowAsAction (MenuItem.ShowAsActionIfRoom | MenuItem.ShowAsActionWithText);

			menu.Add ("Actualizar")
				.SetIcon (Resource.Drawable.refresh)
					.SetShowAsAction (MenuItem.ShowAsActionIfRoom | MenuItem.ShowAsActionWithText);

			return base.OnCreateOptionsMenu(menu);
		}
Example #3
0
 public override bool OnCreateOptionsMenu(ActionBar_Sherlock.View.IMenu menu)
 {
     this.SupportMenuInflater.Inflate(Resource.Menu.Options, menu);
     return(true);
 }