I have a problem, I need to create menu items but I want the user to be able to do that through a GUI where he/she enters the name of the menu item in an edit text and clicks a button to create it. How do I go about this. I will appreciate the help!
Whether you want to handle menu on user view ie menu as a button not menu key on emulator or device then you can treat menu as general view. you have to handle onclicklistener. in onclick() method create the view that you wan to display to the user.
Donot forget to vote the response if it is helpful for you.
Thanks
Deepak
Related
Please refer the attached picture when user click on GO button all the other button comes under the GO button and when user again clicks the GO button all the buttons get distributed. I want to make same button and animation. I searched a lot but not got anything relevant, Kindly help.
There is a satellite menu library, with this you can acheive as you want. In this you need to handle the position of it.
Could I detect if the menu pops up and someone clicks off the screen (closing it without selecting a value)?
Currently I have a checkbox that when clicked opens a contextmenu with choices. When I click off of it without selecting a value I would like the checkbox to disappear.
Thanks.
Should be, have you looked into the Reference Guide for onContextMenuClosed()?
In my application I am having 3 menu like options,setting and favorites. In that If I press 'favorites' means it should display another set of (new)menu and I want to hide the previous set of (old)menu. IS it possible with android? If anyone knows, help me please.
I'm not sure if this is possible, but it's not the bast idea to do such things. Main reason - this behavior will be unexpected for user.
On selecting option menu item you should show alert dialog with possible choices.
Offtopic: According new design guidelines Android will delete "menu button", and all actions will appear on action bar. May be this will be better for your purposes.
i have a list.When i click on any item in the list a popup should appear where i can send messages(something like what happens when we click a user in gmail.A popup window comes up in the bottom and we can chat with that user).
I guess you want to add a Quick Action to your application.
You should be able to get your answer from this question.
How to open the ContextMenu in Android by Clicking a Button?
A context menu is conceptually similar to the menu displayed when the user performs a "right-click" on a PC. You should use a context menu to provide the user access to actions that pertain to a specific item in the user interface.
On Android, a context menu is displayed when the user performs a "long press" (press and hold) on an item.
Alternatively, if you need a button, you can implement the menu for the view and change the content dynamically.
Your question is bad and you should feel bad, given how readily available (if cryptic) the method behind this process is. This small tutorial helped me greatly.
http://www.mikeplate.com/2010/01/21/show-a-context-menu-for-long-clicks-in-an-android-listview/