Is there a way to change the place where android menu appears - java

normally when the menu button is pressed , the menu appears from the center bottom of the screen. Is there a way to make it appear from sides.

On Android 3.0 and higher, items from the options menu are presented by the action bar which is standard way to provide access to menus and normally menus appears from top right corner. You should go through this once:
Menus Action Bar

Related

How to stop Java FX (1.8) menu button items from being drawn over the menu button?

I have this really annoying problem with the Java FX menu button. I have an application that dynamically (at run time) adds items to the menu button menu. The menu button is positioned on the bottom of the screen and so the menu opens towards the top. The menu items are added at the bottom of the menu list. The problems is sometimes this causes the menu to be drawn over the menu button when it is clicked, eventually it will correct its self but since the menu has dynamic items it will happen repeatedly. Is there a way to force a recalculation of menu positions so when it opens it does not cover the menu button?
The diagram on the left is what I would like to have happen when the menu is opened. The diagram on the right is what actually happens when the menu is shown after adding a menu item (the whole menu is drawn on top of the menu button)

Creating a Sliding Menu

I need to create a sliding menu. The case is, this is not like the day to day sliding menus we find, this is bit different.
As in the above image, the menu "opener" should be at the bottom of the screen. This is always visible. You can see this "menu opener" in grey colour.
When the user touches on this grey colour bar and slides up, it should open themenu like following.
I visited SlidingMenu project and this does not contains what I am seeking for, because, the menu is invisible until you slide. But in my case, the "menu opener(grey colour bar") is always visible.
How can I do something like this?
check SlidingDrawer tutorial. you can adjust the drawer as you desire as well.

Show more options in both top and bottom action bars android

I am trying to add few menu Items on my action Bar.
I have 5 buttons and 1 Button for searchView.
If I just put 5 Menu Items , it shows only 4 at the top and blocks away the Text of Action bar.
So I used android:uiOptions="splitActionBarWhenNarrow"
It causes the Actionbar to show on Below as well as Top. But on Bottom action bar, All i can see is 4 Buttons. There is no sign of 5th Button. How can I place 5th Button and an extra search Button on Top bar. Since there is no Menu buttons on top bar now.
Can you post a image friend?
I am guessing that you have to many MenuItems and they are just pushing the 5th away to the right because of the limited space on the action bar. It depends a little bit on what kind of ActionBar you are using, in what target and what version of Android.
Have you considered using a ActionOverflow button for listing the other options?

Drop down menu from action bar - allowing drag and drop icons to be drawn to screen

as the title suggests I'm trying to add code to my app which allows the user to click on an item in the action bar menu which then unfolds a drop down menu (spinner class?) containing a few options such as lamp, tv etc. - each with an icon. The user will then be able to select one of these and drag and drop the icon (or an image representing the icon) to the canvas where it is then drawn. What is the best way to go about this?
If you're referring to the ActionBar overflow menu items, then you would have to take a look at the code for the ActionBar in the framework and extend it in your application, but that would firstly require quite a hassle and secondly would break compatibility when changes are made to the ActionBar in new versions of Android.
Also, this goes completely away from what the ActionBar is intended to be. You should only have actions in the overflow menu, not contain elements that directly interact with the Activity content. It's just wrong. Consider redesigning your UI so that you implement the requested featured inside the content view, not on the ActionBar.

Kindle2.0 hide soft key menu bar

Am doing an application in KindleFire 2.0 , in my activity am displaying the application in the full screen mode. But I can still see the soft menu bar. Is there any way to hide the menu bar ? Please let me know.
there's a couple of options - the Fire has a "full screen" mode which leaves a drag handle visible to get the on-screen soft keys back with a single tap, or what they call the ICS full screen mode which hides everything (you tap to bring back the drag handle then tap the drag handle to bring back the menus)
https://developer.amazon.com/sdk/fire/cx-guidelines.html#Fullscreen

Categories

Resources