public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu (menu, v, menuInfo); menu.Add (0, 0, 0, "Hide App"); menu.Add (0, 1, 1, "Uninstall App"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); { string val_ = CurrentVersion.ENV.getEnvString(CurrentVersion.ENV.NSLIST, string.Empty); if (!string.IsNullOrEmpty(val_)) { menu.Add(0, (int)ContexMenuCmd.changeAgent, 0, translate(WordCollection.T_AGENT)); } } { menu.Add(0, (int)ContexMenuCmd.export, 0, translate(WordCollection.T_EXPORT)); } { menu.Add(0, (int)ContexMenuCmd.import, 0, translate(WordCollection.T_IMPORT)); } //{ // menu.Add(0, (int)ContexMenuCmd.test, 0, "Test"); //} }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add("Up"); menu.Add("Down"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo info) { base.OnCreateOptionsMenu(menu); menu.SetHeaderTitle("Выберите действие"); menu.Add(0, MENU_ITEM_EDIT, 0, "Редактировать"); menu.Add(0, MENU_ITEM_DELETE, 0, "Удалить"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu (menu, v, menuInfo); menu.Add(Menu.None, Resource.Id.a_item, Menu.None, "Menu A"); menu.Add(Menu.None, Resource.Id.b_item, Menu.None, "Menu B"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); Android.Widget.AdapterView.AdapterContextMenuInfo info = (Android.Widget.AdapterView.AdapterContextMenuInfo)menuInfo; var password = ((PasswordsListAdapter)ListAdapter).Passwords [info.Position]; var inflater = Activity.MenuInflater; if (!string.IsNullOrEmpty(password.UserName)) { menu.Add(0, 0, 0, "Copy user name"); } if (!string.IsNullOrEmpty(password.Password)) { menu.Add(0, 1, 0, "Copy password"); } if (!string.IsNullOrEmpty(password.Field1)) { menu.Add(0, 2, 0, "Copy field 1"); } if (!string.IsNullOrEmpty(password.Field2)) { menu.Add(0, 3, 0, "Copy field 2"); } menu.SetHeaderTitle(password.Application); }
public override void OnCreateContextMenu (IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { menu.Add ("One"); menu.Add ("Two"); menu.Add ("Three"); menu.Add ("Four"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add(Menu.None, Resource.Id.a_item, Menu.None, "Menu A"); menu.Add(Menu.None, Resource.Id.b_item, Menu.None, "Menu B"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo info) { base.OnCreateOptionsMenu (menu); menu.SetHeaderTitle("Выберите действие"); menu.Add(0, MENU_ITEM_EDIT, 0, "Редактировать"); menu.Add(0, MENU_ITEM_DELETE, 0, "Удалить"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { menu.Add("One"); menu.Add("Two"); menu.Add("Three"); menu.Add("Four"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add(0, 0, 0, "Hide App"); menu.Add(0, 1, 1, "Uninstall App"); }
public override void OnCreateContextMenu(IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { if (view.Id == Resource.Id.StorageItemView) { menu.Add(Menu.None, 1, Menu.None, Resource.String.StorageItem_Artikelangaben); menu.Add(Menu.None, 2, Menu.None, Resource.String.StorageItem_ToShoppingList); } }
public override void OnCreateContextMenu(IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { if (view.Id == Resource.Id.ArticleList) { menu.Add(Menu.None, 1, Menu.None, Resource.String.ArticleList_Lagerbestand); // Lagerbestand menu.Add(Menu.None, 2, Menu.None, Resource.String.ArticleList_ToShoppingList); // Auf Einkaufszettel } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.SetHeaderTitle("Chức năng"); menu.Add(0, 1, 1, "Sửa"); menu.Add(0, 2, 2, "Xoá"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.LV_SEARCHRESULT) { menu.SetHeaderTitle(GetString(Resource.String.ListViewItemLongClickHeader)); menu.Add(0, 1, 0, GetString(Resource.String.mapLayout)); menu.Add(0, 2, 1, GetString(Resource.String.shopinfo)); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.expandable_payment_list) { menu.SetHeaderTitle(Strings.SelectOperationLabel); menu.Add(Strings.EditLabel); menu.Add(Strings.DeleteLabel); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add("Másol"); menu.Add("Töröl"); menu.Add("Átnevez"); menu.SetHeaderTitle("Fájlműveletek"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.accountList) { menu.SetHeaderTitle(Strings.SelectOperationLabel); menu.Add(Strings.EditLabel); menu.Add(Strings.DeleteLabel); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.category_list) { menu.SetHeaderTitle(Strings.SelectOperationLabel); menu.Add(0, 0, 0, Strings.EditLabel); menu.Add(0, 1, 1, Strings.DeleteLabel); } }
/// <summary> /// Creates a context menu with options. /// </summary> public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.SetHeaderIcon(Resource.Drawable.ifx_logo_small); menu.SetHeaderTitle("Options"); menu.Add(0, v.Id, 0, "Raw data"); menu.Add(0, v.Id, 0, "Visualize"); menu.Add(0, v.Id, 0, "Delete"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { var info = (AdapterView.AdapterContextMenuInfo)menuInfo; var conversation = _adapter[info.Position]; menu.SetHeaderTitle(conversation.DisplayName); menu.Add(FRAGMENT_GROUP_ID, MENU_CONVERSATION_HIDE, MENU_CONVERSATION_HIDE, "ConversationHide".t()); menu.Add(FRAGMENT_GROUP_ID, MENU_DELETE_ALL, MENU_DELETE_ALL, "ConversationClearAllMessages".t()); menu.Add(FRAGMENT_GROUP_ID, MENU_TAKEBACK_ALL, MENU_TAKEBACK_ALL, "ConversationTakeBackAllMessages".t()); }
/// <Docs>The context menu that is being built</Docs> /// <param name="menuInfo">Extra information about the item for which the /// context menu should be shown. This information will vary /// depending on the class of v.</param> /// <c>view</c> /// <summary> /// Raises the create context menu event. /// </summary> /// <param name="menu">Menu.</param> /// <param name="v">V.</param> public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); //menu.SetHeaderTitle (Resource.String.context_menu_header); menu.Add(Menu.None, Resource.Id.action_modify_activity_memo, Menu.None, Resource.String.action_title_modify_activity_memo); menu.Add(Menu.None, Resource.Id.action_delete_activity_date, Menu.None, Resource.String.action_title_delete_activity_date); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.lstVwBooteAktuell) { var info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle(booteUsedClass[info.Position].Nummer + " ," + booteUsedClass[info.Position].Nummer); menu.Add(Menu.None, 0, 0, "Löschen"); menu.Add(Menu.None, 1, 1, "Wieder da"); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.resultListView && queryFeature != null) { menu.SetHeaderTitle("Options"); menu.SetHeaderIcon(Android.Resource.Drawable.IcMenuInfoDetails); menu.Add(0, Menu.First + 1, 1, "Center at").SetIcon(Android.Resource.Drawable.IcMenuInfoDetails); menu.Add(0, Menu.First + 2, 2, "Zoom to").SetIcon(Android.Resource.Drawable.IcMenuInfoDetails); } base.OnCreateContextMenu(menu, v, menuInfo); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); var info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle(((TextView)info.TargetView).Text); menu.Add(0, MenuIdRename, 0, Resource.String.gestures_rename); menu.Add(0, MenuIdRemove, 0, Resource.String.gestures_delete); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); var info = (AdapterView.AdapterContextMenuInfo)menuInfo; var id = (int)info.Id; menu.SetHeaderTitle("Options".ToJ()); menu.Add(0, id, 1, "Rename".ToJ()); menu.Add(0, id, 2, "Delete".ToJ()); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); if (v == ListView) { var info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle(ViewModel.Places[info.Position].Name); menu.Add(Menu.None, 0, 0, Strings.EDIT); menu.Add(Menu.None, 1, 1, Strings.DELETE); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); var info = (AdapterView.AdapterContextMenuInfo)menuInfo; var id = (int)info.Id; menu.SetHeaderTitle("Options".ToJ()); menu.Add(0, id, 1, "Rename".ToJ()); menu.Add(0, id, 2, "Delete".ToJ()); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); var info = (Android.Widget.AdapterView.AdapterContextMenuInfo)menuInfo; var client = ((ClientListItem_Adapter)ListAdapter).GetClientFromPosition(info.Position); menu.Add(0, 0, 0, "Log in"); menu.Add(1, 1, 0, "Make Admin"); menu.Add(1, 2, 0, "Uninstall"); menu.Add(1, 3, 0, "Kill"); menu.SetHeaderTitle(client.UserName); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.SetHeaderTitle("Տվյալներ"); if (ChildData != null) { menu.Add(0, v.Id, 0, ChildData[0]); menu.Add(0, v.Id, 0, ChildData[1]); menu.Add(0, v.Id, 0, ChildData[2]); } ChildData = null; }
private void UpdateContextMenu() { m_contextMenu.Clear(); m_filePacksRepository.GetTop(10).Run(AppendMenuEntryForFilePack); if (m_recentFilePack != null) { m_contextMenu.Add(m_menuItemProvider.Provide("-")); AppendMenuEntryForFilePack(m_recentFilePack); } m_defaultContextItems.Run(m_contextMenu.Add); }
public void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (this.blockID == "") { menu.Add(Menu.None, 0, Menu.None, "Перейти к исполнителю"); menu.Add(Menu.None, 1, Menu.None, "Удалить"); } else if (this.blockID == "false") { menu.Add(Menu.None, 0, Menu.None, "Перейти к исполнителю"); } }
public override void OnCreateContextMenu(IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { if (view.Id == Resource.Id.ListNotes) { AdapterView.AdapterContextMenuInfo info = menuInfo as AdapterView.AdapterContextMenuInfo; menu.SetHeaderTitle(Notes[info.Position].Description); menu.Add(Menu.None, 0, 0, "Reproducir"); menu.Add(Menu.None, 1, 1, "Eliminar"); } base.OnCreateContextMenu(menu, view, menuInfo); }
public override void OnCreateContextMenu(IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { if (view.Id == Resource.Id.StorageItemView) { ListView listView = (ListView)view; AdapterView.AdapterContextMenuInfo acmi = (AdapterContextMenuInfo)menuInfo; //ArticleListView obj = (ArticleListView)listView.GetItemAtPosition(acmi.Position); menu.Add(Menu.None, 1, Menu.None, Resource.String.StorageItem_Artikelangaben); menu.Add(Menu.None, 2, Menu.None, Resource.String.StorageItem_ToShoppingList); } }
public override void OnCreateContextMenu(IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, view, menuInfo); if (ViewModel.SelectedTab is ConversationViewModel) { menu.Add(Menu.None, 1, Menu.None, Strings.Chat_Preview); var channel = ViewModel.SelectedTab as ChannelConversationViewModel; if (channel != null && channel.IsShowingAds) //TODO { menu.Add(Menu.None, 2, Menu.None, Strings.Chat_SendAdAuto); } } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); if (v == ListView) { var info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle(ViewModel.Medis[info.Position].Name); menu.Add(Menu.None, 0, 0, Strings.EDIT); menu.Add(Menu.None, 1, 1, Strings.STOCK); menu.Add(Menu.None, 2, 2, Strings.DELETE); } _logger.Log("Context menu method here", GetType()); }
public override void OnCreateContextMenu(IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { var info = (AdapterView.AdapterContextMenuInfo)menuInfo; var note = (Note)ListAdapter.GetItem (info.Position); // Add a menu item to delete the note menu.Add (0, MENU_ITEM_DELETE, 0, Resource.String.menu_delete); }
public override void OnCreateContextMenu (IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu (menu, view, menuInfo); AdapterView.AdapterContextMenuInfo info =(AdapterView.AdapterContextMenuInfo) menuInfo; Tunnel.Client client = listAdapter[info.Position]; menu.SetHeaderTitle("Client " + client.ID+" at " + client.Address); menu.Add(Menu.None,0,0,"Throw off"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == RollifyAndroid.Resource.Id.formulaListView) { AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle (formulaAdapter [info.Position].Name); String[] menuItems = {"Use", "Edit", "Delete" }; for (int i = 0; i < menuItems.Length; i++) { menu.Add (Menu.None, i, i, menuItems [i]); } } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id != Resource.Id.MyFriendsListView) return; info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle(Resource.String.ContextMenuTitle); var menuItems = Resources.GetStringArray(Resource.Array.ContextMenu); for (var i = 0; i < menuItems.Length; i++) { menu.Add(Menu.None, i, i, menuItems[i]); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); var info = (AdapterView.AdapterContextMenuInfo)menuInfo; var tag = info.TargetView.Tag; if (tag == null) return; var selectedPositionId = int.Parse(tag.ToString()); menu.SetHeaderTitle("Options".ToJ()); foreach (var contextItem in _presenter.GetContextItems()) { menu.Add(0, selectedPositionId, contextItem.Order, contextItem.Title.ToJ()); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo info) { menu.SetHeaderTitle("Context Menu"); menu.Add(0, 0, 0, "Text version 1"); menu.Add(0, 1, 0, "Text version 2"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); if (v.Id != ListView.Id) return; var menuItems = Resources.GetStringArray(Resource.Array.HistoryItemContextMenu); for (var i = 0; i < menuItems.Length; i++) { menu.Add(Menu.None, i, Menu.None, menuItems[i]); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { // If Created From Reminder List View if (v.Id == Resource.Id.listViewRemindersScribe) { var info = (AdapterView.AdapterContextMenuInfo) menuInfo; var menuItems = Resources.GetStringArray(Resource.Array.ReminderContextMenu); for (int i = 0; i < menuItems.Length; i++) menu.Add(Menu.None, i, i, menuItems[i]); } }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add(0, CmenuClear, 0, Resource.String.remove_from_filelist); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu (menu, v, menuInfo); Logging.Log (this, Logging.LoggingTypeDebug, "OnCreateContextMenu()"); selectedLongClickItemPosition = ((AdapterView.AdapterContextMenuInfo)menuInfo).Position; menu.SetHeaderTitle(Resource.String.PresentationsMenuTitle); menu.Add(0, (int)PresentationsMenu.Start, 0, Resource.String.PresentationsMenuStart); menu.Add(0, (int)PresentationsMenu.Create, 1, Resource.String.PresentationsMenuCreate); menu.Add(0, (int)PresentationsMenu.Rename, 2, Resource.String.PresentationsMenuRename); menu.Add(0, (int)PresentationsMenu.Delete, 3, Resource.String.PresentationsMenuDelete); menu.Add(0, (int)PresentationsMenu.ShowFolder, 4, Resource.String.PresentationsMenuShowFolder); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenu_IContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add(IMenuConstants.NONE, R.Id.a_item, IMenuConstants.NONE, "Menu A"); menu.Add(IMenuConstants.NONE, R.Id.b_item, IMenuConstants.NONE, "Menu B"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.listCalendar) { var info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle("Event Options"); var menuItems = Resources.GetStringArray(Resource.Array.eventdetailsmenu); for (var i = 0; i < menuItems.Length; i++) menu.Add(Menu.None, i, i, menuItems[i]); } }
public override void OnCreateContextMenu(IContextMenu menu, View view, IContextMenuContextMenuInfo menuInfo) { menu.Add("删除"); }
public override void OnCreateMenu(IContextMenu menu, IContextMenuContextMenuInfo menuInfo) { menu.Add(0, MenuOpen, 0, Resource.String.menu_open); if (App.Kp2a.GetDb().CanWrite) { menu.Add(0, MenuDelete, 0, Resource.String.menu_delete); menu.Add(0, MenuMove, 0, Resource.String.menu_move); if (_isSearchResult) { menu.Add (0, MenuNavigate, 0, Resource.String.menu_navigate); } } }
public override void OnCreateContextMenu (IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { menu.Add (Resource.String.gallery_2_text); }
public override void OnCreateContextMenu (IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { menu.Add ("Delete"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add(0, DeleteId + 1, 0, "Delete"); }
public override void OnCreateContextMenu(IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { base.OnCreateContextMenu(menu, v, menuInfo); menu.Add(0, DeleteId, 0, Resource.String.menu_delete); }
public override void OnCreateContextMenu (IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo) { if (v.Id == Resource.Id.NoteList) { var info = (AdapterView.AdapterContextMenuInfo)menuInfo; menu.SetHeaderTitle (notes[info.Position].Name); selectedId = notes[info.Position].ID; menu.Add(0,0,0,"Edit"); menu.Add(0,1,0,"Delete"); } }