Questions tagged [options-menu]
108 questions
1
vote
2 answers
How to disable options menu for landscape view?
I have an options menu, but don't want it to appear when the screen is flipped horizontal. I have the following method to determine lanscape, but need to know how to disable the options menu.
private boolean isLandscape() {
if…

Sheehan Alam
- 60,111
- 124
- 355
- 556
1
vote
6 answers
Android: adding text color,background and font size to optionsmenu
I tried a lot to add the font size,text color and background for my options menu but couldn't able to solve, how to do this for the following code?Help is always appreciated.....!, Thanks.
@Override
public boolean onCreateOptionsMenu(Menu…

Jamesdroid
- 77
- 3
- 12
1
vote
2 answers
How to programatically change an item in the options menu?
When the user clicks on the Menu button I present a few menu items. One of them is a Sign Out button. I want to be able to change the text between "Sign In" and "Sign Out" depending on a boolean value I am tracking. How can I programmatically change…

Sheehan Alam
- 60,111
- 124
- 355
- 556
1
vote
1 answer
Android: Custom size of menu item
I am building an app and one of the activities has an options menu. I was wondering if it is possible to decide the size of one of the items on the menu.
I mean, the menu already has 3 options, and I want to add a fourth one, but keeping the other…

JoanG
- 35
- 1
- 1
- 8
1
vote
1 answer
How to create an optionsMenu in an Android's TabActivity
I try to create options menu in a TabActivity.
But instead of it I see for every activity within tabbar its own options menu.
Is it possible change this behaviour? And if yes, how?
Thank you

Tima
- 12,765
- 23
- 82
- 125
1
vote
1 answer
Android: Dynamically change location of Options Menu
I have a drawing activity that creates a custom 'canvas' View that occupies the entire screen, allowing the user to draw on it. I have a requirement to lock the Activity to the portrait orientation, as the drawing app is a sketchpad replacement, and…

Unpossible
- 10,607
- 22
- 75
- 113
1
vote
0 answers
How to make options menu after drawer button?
I want a options menu after the drawer toggle button like this app. And I want options menu in left, write both sides (don't wanna compromise any). Can anyone tell me how to do that?
-: My tool bar :-
Toolbar toolbar = (Toolbar)…

ArghadipDasCEO
- 177
- 1
- 12
1
vote
3 answers
Android: changing drawable states of option menu items seems to have side-effects
In my onCreateOptionsMenu() I have basically the following:
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(Menu.NONE, MENU_ITEM_INSERT, Menu.NONE, R.string.item_menu_insert).setShortcut('3',
…

pjv
- 10,658
- 6
- 43
- 60
1
vote
2 answers
Option menu of the previous fragment is preserved after switching fragment
I have an activity with a navigation drawer and fragments (Fragment Lvl 1). One of these fragments contains nested children(Fragment Lvl 2) with a viewpager adapter. When I add an option menu to the nested child (Lvl 2) it stills appearing on the…

user1758939
- 31
- 5
1
vote
2 answers
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:
alt text http://img291.imageshack.us/img291/1221/deviceit.png
I have tried as follows:
/** Menu creation…

Donal Rafferty
- 19,707
- 39
- 114
- 191
1
vote
1 answer
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…

Mohit Deshpande
- 53,877
- 76
- 193
- 251
1
vote
3 answers
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…

bdls
- 4,578
- 6
- 24
- 30
1
vote
1 answer
How to change SSMS warning settings on SQL without any queries?
I believe there is a SSMS setting somewhere in the options menu to allow changes to tables that require dropping and recreating. How do i do it? I hope I'm being clear with my question.

A_Pointar
- 121
- 1
- 12
1
vote
1 answer
Can't click Options Menu if initial menu size is zero
Lets assume, that I have two activities. One called MainActivity, and the other called PopupActivity.
I want to have a context menu in MainActivity, after the user visited PopupActivity.
Main [no menu] --> startActivity() /…

Hegi
- 193
- 2
- 11
1
vote
1 answer
optionsmenu not working since updating eclipse with sdkmanager
I've an app that i've been developing for around 6 months. It uses an options menu on some of the screens. It has always worked until i updated eclipse from api ~14 to 17. I also updated the tools as well.
The options menu is no longer present can…

turtleboy
- 8,210
- 27
- 100
- 199