Esempio n. 1
0
        public override void OnCreateContextMenu(Android.Views.IContextMenu menu, View v,
                                                 Android.Views.IContextMenuContextMenuInfo menuInfo)
        {
            base.OnCreateContextMenu(menu, v, menuInfo);
            Java.Lang.ICharSequence str0 = new Java.Lang.String("Opciones");
            Java.Lang.ICharSequence str2 = new Java.Lang.String("Eliminar");
            menu.SetHeaderTitle(str0);
            var item2 = menu.Add(0, MENU_ITEM_DELETE_ZONE, Android.Views.Menu.None, str2);;

            item2.SetOnMenuItemClickListener(this);
        }
Esempio n. 2
0
        // Menu.

        public override void OnCreateContextMenu(Android.Views.IContextMenu menu, Android.Views.View v, Android.Views.IContextMenuContextMenuInfo menuInfo)
        {
            base.OnCreateContextMenu(menu, v, menuInfo);

            MenuInflater.Inflate(Resource.Menu.game_menu, menu);
        }