Top "Android-menu" questions

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

How do I hide a menu item in the actionbar?

I have an action bar with a menuitem. How can I hide/show that menu item? This is what I'm …

android android-actionbar menuitem android-menu
Android, How to create option Menu

Here I tried to make option menu, but menu is not displaying on screen, so please guide me where am …

android android-menu
Android custom dropdown/popup menu

How do I do a custom dropdown/popup menu anchored to a button? I need it to work like the …

android drop-down-menu menu android-menu popupmenu
How to change the background color of Action Bar's Option Menu in Android 4.2?

I'd like to change the background color of the option (overflow) menu in Android 4.2. I have tried all the methods …

android android-actionbar android-4.2-jelly-bean android-theme android-menu
How to change MenuItem icon in ActionBar programmatically

How to change MenuItem icon in ActionBar programmatically? I tried to use MenuItem menuItem = (MenuItem)findViewById(R.id.action_settings); …

java android android-menu
"No resource identifier found for attribute 'showAsAction' in package 'android'"

I am attempting to update my android application to look better for tablets running Honeycomb. As such, I am targeting …

android android-layout android-actionbar android-menu
How to change option menu icon in the action bar?

How to change the index icon of option menu? I mean icon (3). Here is my code: @Override public boolean onCreateOptionsMenu(…

android android-actionbar android-menu android-optionsmenu android-icons
PopupWindow - Dismiss when clicked outside

I have a PopupWindow on my activity, the thing is my PopupWindow still shows even when I'm interacting with my …

android popupwindow android-menu
Android Checkable Menu Item

I have the following menu layout in my Android app: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="…

android android-menu android-checkbox