Android :: Make Menu Item Disabled
Jan 14, 2010Is it possible to disable (gray) a menu item?
View 3 RepliesIs it possible to disable (gray) a menu item?
View 3 RepliesI have button, which displays a Context menu. In the menu are few items (some of them are disabled - setEnabled(false)).
Which event is called when a user click on the disabled item? It's not onContextItemSelected nor onContextMenuClosed. But the menu is closed after the click.
How can i define each menu item in different line? Right now if I'm adding 4 items they will get the form of 2X2. Is there a way to add them differently? Like 1 item and 3 below it? or 1X4?
View 1 Replies View RelatedI want a user to be able to long press a contact and be offered a menu item of my own that can run an activity of my own. You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options
View 3 Replies View RelatedIs it possible to add a custom menu item to the long-press menu that opens in any text box?
View 3 Replies View RelatedI have a customized Cursor based adapter for my ListView. Each Cursor has a few columns of data, sorted by the priority column. I know you can create a disabled list item to act as a sort of header, like in the Market app (the little green labels). What I would like to do is display a header for each group of items with a different priority. They are already sorted by priority. Example data:
title, priority
note1, high
note3, high
note2, low
note4, low
Example of what I want in ListView:
= High Priority =
-note1
-note3
= Low Priority =
-note2
-note4
I have an Options menu up and running in my Android application and I've overridden the onCreateOptionsMenu, onOptionsItemSelected and onPrepareOptionsMenu methods to customize the menu a little. My question is related to keeping the Options menu open after the user clicks on a menu item. Basically, I'd like to be able to hide the menu until the user clicks on the device menu key. Once the user clicks on this key, I'd like to be able to hold the menu in place regardless of how many times the user clicks on menu items. If the user wants to hide the Options menu, they'd just need to click on the device menu key again. Is this type of interaction supported (or even advisable).
View 1 Replies View RelatedCan anyone kindly guide as to how can I invoke a context menu on the press of a menu item. I googled a lot for the same, but nothing turned up. Look forward for your valuable help.
View 1 Replies View RelatedSo as you might already know, Google is trying to kill the hard menu button by integrating a soft menu button inside all apps.
Is there a way to disable this? I'm running the latest cyanogen (i9300) and I can't find a way to disable it. It just takes space and I don't even use it.
Can we add a new item in SMS menu which can in turn invoke my application? If yes, please show me the path.
View 2 Replies View RelatedI use tabs in my Android application and one of my tabs contains a listview. I'm noticing some weird behavior when I override isEnabled in my list's adapter and then try to use the D-pad to move up and down through the list and to my tabs.If the 0th item of the list is enabled, then everything works as expected - I can move down through the list, and then up again and once I reach the top of the list, pressing up moves focus to my tab.However, if the 0th item is DISABLED (isEnabled in my adapter returns false), then when I press up while position 1 is focused, the focus gets stuck. It doesn't move up to the tab as I would have expected and instead stays on position 1 of the list.
View 1 Replies View RelatedWhen I click on a button i want to make entire screen disabled i.e there are other buttons and text area ..which should get disabled on a particular button click.
View 5 Replies View RelatedCan I add a new item in SMS context menu which can in turn invoke my app/activity?
View 2 Replies View RelatedI added 2 menus.code...
when i click the stop menu, the start menu name should be changed.
How to change that?
Is it possible to have something similar like Blackberry in Android: link text. I want to add a menu item particularly to the Contacts Option menu.please let me know if this can be done in android.
View 1 Replies View Relatedwhen you long click a hyperlink of browser, you will see a context menu with 'Open, Open link in new browser, Browser Link, etc'.
is it possible to add some customized item to the context menu?
Does any one know how to add item to hyperlink context menu? This is a question that as already been posted here, but I didn't found any solution, and it is really useful.
View 2 Replies View RelatedHow to show menu items automatically (without clicking menu button) when the layout is viewed?
View 5 Replies View RelatedDo you know how to rename existing menu? I can rename when press menu item. But I don't know how to access to menu item when press the button.
View 3 Replies View RelatedIs it possible to add a menu item to the default calendar app for Android? if so, how do i go about doing this?
View 2 Replies View RelatedI m a novice in android.. i want to add a button or menu item in message inbox or email. how can i do so.
View 2 Replies View Relatedif I have an Options menu in Android that has more than 6 items, Android adds a More item that shows the other hidden items, AS text!But I want the More button to display the extra items both in their text AND icon, how do I do that?
View 1 Replies View RelatedHow to disable the menu item in android in execution time. Example: Button Next and Back. When is in the last record, the Next menu is disable.
View 3 Replies View RelatedI'm attempting to call start Activity(myIntent) from the click of a menu button but my application crashes at that point. The same start Activity call works fine from a regular button click, so, I assume the menu button is missing information about the context? Or maybe I'm totally off the mark here. So what's the correct way to have a menu item take me to a specific Activity? I've revised my code based on the initial set of advice. Still crashing in the same place. The debugger doesn't enter the exception clause, the app just dies. Code...
View 2 Replies View RelatedCan you please tell me how can I create an android menu item using android setting icon?
View 1 Replies View RelatedI am trying to a menu item to launch the Send intent. This is what I did, I see the menu item
but i don't see send intent launch when i select the menu item. code...
I have a ListView and would like to remove a row item when the user long clicks on selects Remove from the context menu.
CODE:..................
How can I get a reference to the row number that was clicked, so I can remove that index from my array?
I want to display an messagebox when select a menu item. The messagebox include a string , Ok button and Cancel button that I can choose one. code...
View 3 Replies View RelatedWhen you long press on something in Android, a context menu comes up.I want to add something to this context menu for all TextViews in the system.For example, the system does this with Copy and Paste. I would want to add my own, and have it appear in every application.
View 3 Replies View RelatedI am having trouble setting one menu item/button to run different actions based on other actions currently running(ie having the button toggle actions). what I am trying to do is have a menu item to toggle wifi on and off but when I try to run if/else statements on the menuitem click it force closes the app.
View 2 Replies View Related