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.
Related
I want that when an item is added to cart the flaoting action button show open this layout. Does anyone have an idea how to do this..
This is the floating action button at the bottom right corner
This is how the layout must open on fab click
Please help me do this..
You have 3 options,
Option 1
On clicking fab just hide it and show a custom dialog box to the exact same position you want.
Option 2
Use a custom SnackBar and display it , example link here
Option 3
Use this library FABRevealLayout to expand FAB to a layout.
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.
I recently got into android development. I just started on my first app and was wondering how to move the app title right next to the drawer icon instead of it being in the middle like this.Example
Is there anyway to do this at all? Thanks.
Normally,the app title is right next to the drawer icon. I think your layout file may have a problem, can you show you layout code?
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
is possible implement trash layout like launcher android?
In my app, move icon from layout and I would remove it in this layout like "disappearance".
For example press and hold icon I want to remove. then drag it into the layout "trashcan", after this layout disappears.
thanks