Questions tagged [menuitem]

A menu item is a child element of a menu that provides the user a means to view and execute a specific application operation.

A menu item is a child element of a menu that provides the user a means to view and execute a specific application operation. A menu item may have an accelerator key which provides the user a quick way to execute the menu item operation. A menu item in turn can consist of other child menu items.

2533 questions
28
votes
2 answers

Inflate Bottom Navigation View menu programmatically

Bottom Navigation View has been added to version 25 of the Design Support Library. Tried and it's much easier to use now. But I am facing problem implementing it as per my app requirements. I want to inflate menu resource dynamically and change…
Priya Mall
  • 581
  • 1
  • 10
  • 22
28
votes
11 answers

BottomNavigationView - How to uncheck all MenuItems and keep Titles being displayed?

As I liked the design from BottomNavigationView I decided to implement a new Menu for my App with it, instead of just using simple buttons. I took this post as a guideline. According to BottomNavigationView's documentation, its purpose is to…
Victor Oliveira
  • 3,293
  • 7
  • 47
  • 77
28
votes
8 answers

react-router+antD/ How to highlight a menu item when press back/forward button?

I create a menu and want to highlight the item which i choose,and i did it. But when i press back/forward button,the menu item don't highlight. What should i do? I have tried to use addEventListener but failed. Have someone could give some advice?…
Eve
  • 369
  • 1
  • 3
  • 6
28
votes
3 answers

WPF - How can I create menu and submenus using binding

I am trying to create a dynamic menu using binding. I my viewmodel I have a list of objects which contains an header and a command. However, it is not working. I think the problem is in the data template. See my code below:
Jannibelli
  • 331
  • 1
  • 5
  • 10
26
votes
2 answers

How to Implement dynamic routing in routes.js for generated menu items in sidebar in universal react redux boilerplate by erikras

I am currently working on a CMS based project. For which i am using the universal react redux boilerplate by erikras I really need suggestions on handling dynamic routing Lets take a simple scenario form the boilerplate... In routes.js
Dev
  • 285
  • 1
  • 3
  • 7
25
votes
2 answers

Custom view for Menu Item

I need to have dynamic Menu Item, a circle of user defined color, like this: touching this menu item will open a color picker. Now, I have sample ColorPickerIcon which extends View public class ColorPickerIcon extends View { private Paint…
Roman
  • 2,079
  • 4
  • 35
  • 53
24
votes
5 answers

MenuItem's checked state is not shown correctly by its icon

I have MenuItem defined this way:
Joe Krill
  • 1,734
  • 1
  • 18
  • 19
23
votes
4 answers

How to select a Menu Item without closing the Menu?

By default when you select an item from a TMainMenu or TPopupMenu etc, the menu closes after it was clicked. I would like to change this behavior so that when I select on a menu item, the menu does not close but remains visible and open at the point…
user741875
23
votes
6 answers

Navigation Drawer Menu Item Title Color in Android

I have a problem changing the Menu Item Title Color in the Navigation Drawer I set the itemTextColor but it only changes the Color of the Items not the Title of the menu. Here is my Activity_main.xml
23
votes
3 answers

How to get an MenuItem by id

I have my menuItem on my res/menu/student_marks.xml file:
Giovanni Far
  • 1,623
  • 6
  • 23
  • 37
22
votes
4 answers

How to Display Working Keyboard Shortcut for Menu Items?

I am trying to create a localizable WPF menu bar with menu items that have keyboard shortcuts - not accelerator keys/mnemonics (usually shown as underlined characters that can be pressed to directly select a menu item when the menu is already open),…
O. R. Mapper
  • 20,083
  • 9
  • 69
  • 114
21
votes
5 answers

Cocoa: setting the key equivalent

i want to set the key equivalent of a menuitem with [menuitem setKeyEquivalent:(NSString *)s], how can i do that if i have multiple modifiers ? i tried: unichar shift = NSShiftKeyMask, cmd = NSCommandKeyMask; NSMutableString *keyequiv =…
Eike Cochu
  • 3,249
  • 7
  • 34
  • 57
21
votes
2 answers

Set a menu item as checked from code

I have an Android application with the following menu item in one of the Activities (which concerns handling a list of names and mac numbers):
21
votes
3 answers

System.Windows.Controls.MenuItem without icon area

Whenever I try to play with the look of WPF menu item, I get a wast opportunities to customize the header, which is basically the text of an item. What I need, is to have a black menu, with white text and no "icon area". ||Some text…
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
20
votes
1 answer

Using a DataTemplate for a MenuItem causes extra space on the left side to appear?

Whenever I attach a DataTemplate to a MenuItem, each generated menu item gets an extra space on the left side. This extra space looks as wide as the space reserved for the check, which I use. Building a menu manually without a DataTemplate doesn't…
djcouchycouch
  • 12,724
  • 13
  • 69
  • 108