Android: Action bar's action items centered - java

I am working on the action bar of an application and I want the actions to be centered. I searched everywhere but all I can find is how to center the title. Is there anyway to center the actions? Moreover, I would like the text of the actions to be below the icon not on the right of the icon. Is there anyway to do that?

Related

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

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

Actionbar Custom Position

I'm relatively new with Android development, and I received a layout for an app where I have to put some kind of bar with images above the action bar.
I searched a lot in Google but I couldn't find anything about change the action bar position. I also found some info saying:
Google highly recommend to NOT change the action bar position(...)
Well, how I got some custom views for the action bar icons was to put the view below the action bar. However, what I am supposed to do is put the view above the action bar.
Is there a way to put a view above the action bar or change the action bar position?
Is there a way to put a view above the action bar or change the action bar position?
Not that I am aware of.

How to insert a Label and an image icon into the Menu bar of a netbeans platform application

In my netbeans platform based app, I need to add a Label which shows the user name and a image icon into the Menu bar. Menu items are defined in an xml file and action classes are used to define menu actions. How can I customize the menu bar in order to put a label and a image icon at the right corner of the menu bar? Is this possible?
The solution for this is given in forum post :
http://forums.netbeans.org/post-140363.html

Is it possible to set the padding between Action Bar home button and App Logo?

I want to increase the padding between the home action bar button "<" and the app logo displayed to the left of it. Is there any attribute I can set to achieve this?
I guess you can't add more transparency to the left of your icon?

Adding 2 different menu bars in java

I'm creating two menu bar 1st menu bar is for background color & 2nd is for text color.the application contains text component where user can type text.when user press either of menu scroll bar are shown on screen.for red,blue,green, color component the user can adjust the position of scroll bar,on pressing "OK" button the foreground or background of text component on frame changes according to the menu choice.
One possibility is to create an MDI (one parent window, with an internal child window for each document). See: How to Use Internal Frames. The JDesktopPane and each JInternalWindow can have their own menus.
Two menus bars sounds awkward. Usually a single menu bar is more than enough to handle. Have you considered a popup menu instead for the second set of menus? If you still insist on adding multiple menu bars to a frame, consider changing their position for example use BorderLayout.SOUTH on one of them.

Categories

Resources