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.
Related
I am using the newest AppCompat library and replaced the SupportActionBar with a Toolbar, as suggested by the Android developer's blog. I want to display a second Toolbar at the bottom of the screen, that shows an additional Menu from some xml menu resource, but nothing else.
I have two problems with that:
Although nothing but a Menu is displayed (using Toolbar.inflateMenu()), the Menu occupies only a small space on the right side of the toolbar.
The Overflow Action Menu expands to the bottom of the toolbar and is therefore not shown. It should expand to the top.
Here is a screenshot of the bottom Toolbar:
How can I solve those issues without being forced to create custom views for my Buttons?
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.
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
I am developing an application with target Sdk 17. My current device is Nexus 7.
My app should be without an action bar so I am using the theme Theme.Holo.NoActionBar on the activity.
I want to show the overflow button (3 dots) at the bottom right (next to the recent task). but I can't make it to be visible. If I return the action bar I see it at the top right, but that's not what I want.
Is there any idea for anyone?
If you are talking about OptionsMenu button you must use ActionBar, or you can set android:targetSdkVersion="10" for your project in manifest file. This will enable compatibility behaviour and you will see menu button near other navigation buttons .
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
`