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.
Related
How do I remove the mail icon on the bottom right (see the screenshot)? It has been automatically created and I can't select it in Design view in Android Studio
screenshot
Go to your activity.xml, click on it then press delete. I has id fab meaning Floating Action Button
In your activity layout file look for this tag
<android.support.design.widget.FloatingActionButton>
and remove this.
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 working on an app for tablet that uses the Theme.NoTitleBar.Fullscreen: my tablet is under android 4.1.1 and the settings button should be on the top right corner of the app, but with such a style, the button (three little squares aligned vertically) is not visible... how can I fix that?
The button you are talking about is part of the title bar. So if you request to hide that one, your button is of course not accessible anymore.
You have to provide a button in your layout to access your settings screen. Or show the title bar.
You can use context menus for resolving this thing ... i was having the same problem... and if you want to use legacy overflow button (the three dots) please refer to this link http://android-developers.blogspot.in/2012/01/say-goodbye-to-menu-button.html
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
`