Menu overlflow button on device with softkey buttons - android

my application looks like this on my galaxy nexus:
How can I add the menu overflow button to my softkey buttons on the bottom?
Or is this the way it is supposed to work?

You're not supposed to manually add any button to soft key bar. When there is soft key bar at the bottom, ActionBar will add menu button at the top (as in your example - 3 dots button). If you need support for SDK<11, use ActionBarSherlock lib.

The menu menu button at the bottom where the soft keys are only appear when apps that have a menu but are built on older versions of android and they have not updated it yet to use the new actionbar menu.
In short no you cannot and users do not like when the menu button is in the soft key area because not all devices have soft keys so there will be a random black bar at the bottom of your screen just for the menu button.
Look here about menu's

Related

Adding button in Android Bottom toolbar

Is it possible to add button on android bottom tool-bar
which has the icons(back , home , minimize)
and control the color of that icon as well
Thanks
Himanshu
No, you cannot add buttons to the navigation bar. This bar is system controlled.
The only thing you can 'add' is the menu button, if the device has soft keys. For this, you'd just need to create a menu in your activity / fragment.

actionbar menu in lower version

ActionBar menu is not showing at the top of screen (three dots) if device is having build-in hardware menu button at the bottom.
Actionbar comes properly in my device except menu. How to bring menu at the top right side though i have in build menu at the bottom.
Actionbar overflow not appearing when hardware navigation button is available.
that time you need to use custom menu button with icon of overflow.

ActionBar with popup menu at the bottom of the screen

I'm using ActionBarSherlock and I wonder if it is possible to have a popup menu at the bottom of the screen additionally? I'd like this menu to appear when the user clicks the default menu button (hardware for older mobiles).
How can I do this?
The actionbar menu overflow is automatically replaced by items in "menu" popup if you have a hardware menu button.
http://developer.android.com/design/patterns/compatibility.html
In order for items to appear in there you should set
android:showAsAction="never"
to your menu items
You must take a look at the How to Create Android Menus?
I hope this will help you.

How to avoid duplicate menu buttons in devices with API>10

How can I remove or hide the soft menu button in the bottom bar but still keep the overflow menu button in the ActionBar.
I have set the target API to:
android:targetSdkVersion="11"
as suggested here.
My app does have menu items so I am overriding the onCreateOptionsMenu().
The menu button appears both in the right side of the ActionBar and in a bottom bar. I simple don't want the space in the bottom of screen to be wasted for a duplicate menu button. I have seen apps like YouTube or Google Play which only have menu button in the ActionBar so I assume there should be a way to do this.
Raising target API to 14 (android:targetSdkVersion="14") solved this problem.
with thanks to CommonsWare
`

Docked Settings Button override for Android

I am developing on a Galaxy Nexus, and I would like the settings icon on the main dock to open up some window of buttons. How do I go about handling this button press? it's that button that looks like a vertical "..."
That button:
will only appear on devices without a MENU button
will only appear if you have action bar items in the overflow menu
cannot be directly used for other purposes
You are welcome to have an action item in the action bar that will "open up some window of buttons". You can choose whatever icon you want for this action item. I strongly encourage you to not use the same icon as the action overflow menu. There are millions of possible icons, so surely you can choose one of greater relevance to whatever the "window of buttons" is and will not conflict with the users' expectations of what the action bar overflow should look and work like.

Categories

Resources