How to display menu without pressing menu button? - android

I have a menu that I want to appear on the screen when the app starts, without the user having to press the menu key.
What is a good way to achieve that?

Maybe Activity.openOptionsMenu() or Activity.openContextMenu?

Related

Menu like Dropbox app in android

I like to make a menu in my Android app that works similar to the new popup menu in the dropbox app, i.e. when I click a button I want the menu to appear from bottom, like in the following image.
Does anyone have an idea how this can be implemented?
You can use PupopWindow. When you click the button show your pupopWindow at the bottom.

how to disable navigation keys in android programmatically

how do I disable the menu, home, back and search key programmatically in android, including the vibrate when those keys are pressed.
You can't disable the home button. The back button you'll need to override onBackPressed(), and the menu button shouldn't do anything unless you assign it an action.
If you mean disable these system-wide, I'm afraid glad you can't do that.

Selected button during Home Screen

I have a home screen with a Home button. This screen is the default screen when my application starts up. I would like to show the Home button as selected to indicate that the user is in the Home screen when my app starts. How do I do that? Please help.
Thanks.
I think for what you want to do you want to either use a group of RadioButtons, or tabs. If you just want a button that looks different in different states, try using a StateSelector.

How can i force an option menu to show up on android?

I have created an option menu for my app, but i want it to show up at the application start and be never hidden by any user control.
How can I? Is there a solution or i have to draw a custom menu in the layout?
How can I?
Don't make it an options menu. Use buttons or something.
If you want something to look like an options menu, please have it behave like an options menu, appearing when the user presses MENU and disappearing when the user makes a choice. Conversely, if you do not want it to behave like an options menu, then it should not look like an options menu, as that will confuse the user, wondering why your application or their phone is broken.
You have to place it in your layout.

android : set the menu out / visible

Maybe this question has been asked already but I can't find any information about that even in the "Menu" section of Android's doc...
So does anyone know if there is a way to set the menu out on an activity (to avoid the user clicking on the menu button of the phone)...?
Is this what you are looking for Sephy ?
Activity.openOptionsMenu()
I'm not quite sure what you are asking. The menu button is often a physical button on the phone, so you can't make it invisible if that is what you are asking. You can refrain from adding items to the menu. Then clicking the menu wouldn't do anything.

Categories

Resources