Android actionbar popup menu - android

I am trying to accomplish a popup menu Popup Menu
for my android app, with a custom app bar/ toolbar placed at the bottom.
I have already tried with the options menu and custom alert dialog but seems there must be a simpler way, am I missing something?
What is the best-suited way to achieve this menu design?
Do I need to use custom navigation drawer if not then please help.
Edit : As #Blackbelt suggested Bottom Sheet Dialog, which looks fine but it is covering my bottom app bar and I am not able to set any Margin Bottom for it. Please help.
Thanks

Related

Android Pop-up Menu with material design in ListView

How can i create the pop up menu exactly in my Android list view like this having material design effects and pop up animation? can anybody help with the code?
When i click on the 3 dots the Menu should popup on its top like in the below image:
You could try and use the PopUp Menu.
Here is a link tk more information: http://developer.android.com/reference/android/widget/PopupMenu.html
You can also provide a custom layout to it, if it's another layout you want.

Hide the Menu Button in new API21 Toolbar

I'm upgrading my app to support new Google APIs.
I've been playing for a while with new Toolbars but I still can't get how to make the menu button disappears when a Drawer Layout is opened.
Reference from the Material Design page (I'm trying to achieve the one on the right):
Radial Action
I'm not trying to "replace" the button like the example but to hide it temporary with an animation.
Any suggestion would be much appreciated! Thanks

Android Actionbar PopupMenu with Custom Item Layouts

I am working on an Android application where I have to design a menu which will populate from the action bar, like this:
I have tried my best but was not able to produce it using the Android controls.
The solutions I have tried are:
With Actionbar, add a menu item with a group with selectable="all", that produces the layout I need but when I click a checkbox for selecting it, the whole menu hides and selection is not done, moreover the menu icon in actionbar does not have the bottom right white arrow.
Tried creating a custom ActionProvider and added the menu items using class's OnPrepareSubMenu method but had the same issue.
I just need a push in the right direction and I can do the rest, suggestions are more than welcome.
Thank you :)
Use popupWindow.
In that you can make any custom layout and set it as content of your popupwindow and also you can specify an ANCHOR in your case it would be
R.id.your_menu_item
set a listener and listen the changes.

SlidingMenu shows blsck when used with Map api v2

I have developed an application. In it, I have used a fragment for showing Map. The layout only has a top title bar and a fragment. In the sliding menu layout I have title bar and some buttons. On click of a button in main layout I show the menu.
The problem is that the menu is not showing up. Instead of menu there is only black color, But I am getting the title bar of menu. So i think the problem is the due to the map because the height of the black zone is same as that of the map
I am using this for showing sliding menu.
Please help me out.
Thanks
This is a known issue.
http://code.google.com/p/gmaps-api-issues/issues/detail?id=4659
http://code.google.com/p/gmaps-api-issues/issues/detail?id=4639
There are workarounds in comments. Maybe something will work out for 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
`

Categories

Resources