options-menu

Strange options menu behavior in Android TabActivity

I have a TabActivity with four tabs (each is its own Activity). Each tab defines its own onCreateOptionsMenu (and in some cases, onPrepareOptionsMenu). When each tab is loaded, an AsyncTask is kicked off to retrieve the data needed to populate that tab's list. If I switch between tabs very quickly (while they're still loading) and then ...

Android: What could cause an Options Menu inflation error?

I am receiving an inflation error when pressing the Menu button and adding a menu item in the onCreateOptionsMenu method. I've included some of the error below. The code is as follows, and works if I try it on its own and not as part of my activity as a whole. I don't think it's feasible to paste in the whole of my activity here (I have...

Intercept onOptionsItemSelected

I have a top level TabHost that implements the onCreateOptionsMenu method. And I want sub-activities (those within the tabs) to be able to intercept the options menu via onOptionsItemSelected. Like for example, in the options menu I have an item called, "Edit Note" and in one tab there is a ListView with a list of all the notes. I want t...

Android - Options Menu wont work

I am trying to create an Options menu in an Activity that gets started from a Service and then changes its UI based on messages from the Service passed via a Handler. I set up the Options menu as follows: /** Menu creation and setup **/ /* Creates the menu items */ public boolean onCreateOptionsMenu(Menu menu) {...

Android - checkable buttons on options menu

Can anyone point in the direction of any tutorials that show how to create an options menu with clicakble checks like in the picture below: I have tried as follows: /** Menu creation and setup **/ /* Creates the menu items */ public boolean onCreateOptionsMenu(Menu menu) { boolean result = super.onCreateOptionsMenu(menu)...

changing layout of options menu

Is it possible to modify layout of the options menu? For example, have Title above the icon or increase space between them? ...

options menu - removing focus from item

how do I remove focus from options menu item? I.e. when I open the menu for the first time, none of the items has focus. however, if I focus on one of them using track ball, and then close and re-open the menu the focus is still there. How do I get rid of it? I am clearing and recreating the menu in onPrepareOptionsMenu (as I have to ad...