Questions tagged [options-menu]

108 questions
1
vote
2 answers

Select multiple options from jsp dropdown

I have the following code and I want to be able to select multiple options when with a shift button. The following code displays a list of items in a drop down option menu: I have a table in the DB that have alist of books, so Iam populating the…
spitti84
  • 121
  • 2
  • 4
  • 11
1
vote
1 answer

Android OptionsMenu Hide First Item

folks. Here's the problem. Let's say I have three items on my menu. I want the first one to be invisible (like transparent) but at the same time consumes space. And the second and third to be display normally. Thanks EDITED: I have three items on…
lorraine batol
  • 6,001
  • 16
  • 55
  • 114
1
vote
1 answer

Android multiple options menu for multiple screen with no code repetition

My android app has several screens, and in each one of them I would like to have a similar options menu with a slight different. For example screen A would have items 1,2,3,4 and screen B would have items 1,3,4,5 As you see they have items in common…
yogi
  • 1,327
  • 2
  • 12
  • 33
1
vote
1 answer

OptionsMenu onOptionsSelected gives me nothing

I am trying to make a simple Activity which has a menu with two buttons. The first button will load a separate activity, while the second button I am leaving with nothing to do for now. I have put log statements everywhere but the only one which is…
JuiCe
  • 4,132
  • 16
  • 68
  • 119
1
vote
3 answers

onOptionsItemSelected issue

i have created an options menu for my database class. Upon launching the options menu, I would like to the desired activity at the click of the specified button. But the issue is that if i click on any option , i get directed to the MainMenu.class…
Nidhin_toms
  • 707
  • 4
  • 18
  • 29
0
votes
1 answer

Android: OptionsMenu clears my Spinners, how to update them?

My Android app has two Spinners (dropdown menus) working fine. However, now I've added an OptionsMenu with: One submenu with options to open an AlertDialog textbox. One submenu with options to change language (locale). If I click one option in the…
anderfo
  • 113
  • 1
  • 7
0
votes
1 answer

Keep Android menu open at all times: onOptionsMenu

I'd like for my menu button in my main activity to be open at all times. I've used: @Override public void onAttachedToWindow() { super.onAttachedToWindow(); openOptionsMenu(); } which opens the menu when I go to the Activity. However, when I…
user836200
  • 655
  • 2
  • 12
  • 20
0
votes
1 answer

Android add listview to OptionsMenu

I want to add a ListView to the options menu so when clicked it will pop up and allow the user to scroll through it and interact it without the same as any other listview. using something this for the XML:
Gal
  • 5,338
  • 5
  • 33
  • 55
0
votes
1 answer

Android doesn't allow both contextmenu && optionsmenu?

i've tried to add an optionsmenu and a contextmenu to one activity, but it doesn't work. When i create a new XML file in the menu folder, where the XML file for the optionsmenu exists, the whole android app doesn't work, because the R.java file…
0
votes
1 answer

android honeycomb - how to make options menu item look disabled?

I am trying to disable one of the options menu items using the foll code: public boolean onPrepareOptionsMenu (Menu menu){ menu.findItem(R.id.menu_item_id).setEnabled(false); return true; } However after the method is executed, disabled…
Asahi
  • 13,378
  • 12
  • 67
  • 87
0
votes
1 answer

Android: oncreateoptionsmenu not called with asyncTask

I have created an application having tab activity which in turn has 5 different list activities in which the options menu is there. Till now it was working fine but since i've added asyncTask the Options Menu does not work at first instance but when…
ReNa
  • 1,114
  • 6
  • 19
  • 37
0
votes
2 answers

Android: a problem with a custom webview and options menu

I've spent weeks designing a custom webview, for an app I am building. I have a class (let's call it myWebView) that extends the android WebView. I declared myWebView in my main.xml, just as you would any other UI elements accept i prepended…
aamiri
  • 2,420
  • 4
  • 38
  • 58
0
votes
2 answers

RuntimeException with Android OptionsMenu

My application was running fine until i added the following code to add an options Menu to my main Activity: @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); …
Chris
  • 7,675
  • 8
  • 51
  • 101
0
votes
1 answer

Can anyone help me figure out why my OptionsMenu won't show up?

I am using tabs, with Activity groups in each. I want to add an options menu to certain activities but it won't show on any. I have options menus working in other projects with the exact same code, so I can't figure out why they won't show up. This…
NotACleverMan
  • 12,107
  • 12
  • 47
  • 67
0
votes
1 answer

Customize Menu Options When Using menu.addIntentOptions()

I am building a simple application based off of the Google provided Note pad app. One of my first steps is converting the app to use XML menus, where possible. In the main activity, the notes list, I am using MenuInflater to show the default…
Unpossible
  • 10,607
  • 22
  • 75
  • 113