Top "Android-menu" questions

Questions regarding designing, implementing and handling menus and action bars in Android.

Using Android action bar share intent

I'm using a menu item on the action bar and I want to share my app by clicking the share …

android android-menu android-optionsmenu
Option Menu does not appear in Android

I have this code to create the menu: @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater inflater = getMenuInflater(); …

android android-xml android-menu android-optionsmenu
Navigation Drawer menu items selected within different groups

I have a working Navigation Drawer and having some issues with menuItem.setChecked(true); when using groups and headers within …

java android android-fragments navigation-drawer android-menu
Get Current Selected Item of Navigation Drawer in Android

How can i get Current selected item of navigation drawer? My menu is stored in drawer_menu.xml navigationView = (NavigationView) …

android android-menu navigation-drawer
Opening a floating menu (context menu) in Android?

I created a new menu, named drmenu.xml. It works correctly when i press menu button, but I need to …

android android-menu android-contextmenu
Add one section separator for Navigation Drawer in Android

I have a navigation drawer like this image. I want to add a section separator . It seems simple but I …

android android-menu navigationview
openOptionsMenu function not working in ICS?

Im using action bar compability library. Im trying to open the options menu from a button with openOptionsMenu() function but …

android android-menu android-actionbar
OnOptionsItemSelected in activity is called before onOptionsItemSelected in fragment. Other way possible?

I have an activity which can contain several fragments. Each of the fragments can have their own menu entries in …

android android-fragments android-fragmentactivity android-menu
searchManager.getSearchableInfo(getComponentName()) returns null

I've followed this Android guide in order to add a search bar to an activity. The setup looks like this: …

android android-actionbar android-menu searchable searchview