There is a way to add alphabetical shortcut to your menu item.
I am going to show how it can be done.
@Overridepublic boolean onCreateOptionsMenu(Menu menu){menu.add(0,NEW_MENU_ITEM,0,"New").setAlphabeticShortcut('N');...return super.onCreateOptionsMenu(menu)}As you can see it is very easy.
How you can test it? Run your code with this snippet,click Menu button and after click “N”.
No related posts.

Recent Comments