Make a spinner-like dropdown box from a button? - android

I was trying to figure out how to create this style used in Google Now, how the "Settings" appears to be a Spinner drop-down box but does not use the typical Spinner design:
Any ideas/suggestions on how to emulate this?
Thanks!

This is called pop up menu. It is implemented in apidemos for example.
Did you look at the example of ApiDemos->Views->popup menu. This may be appropriate. Attached screenshot for your reference. Pop up menu is available since API 11. Ref.
http://developer.android.com/reference/android/widget/PopupMenu.html
or
This could be useful too
http://i.stack.imgur.com/AiAOg.png
You can get the Library from: https://github.com/JakeWharton/ActionBarSherlock
or
If you want to display icon along with menu items then I recommend to visit this post,
Please refer to this solution stackoverflow.com/a/11765787/1143977

Related

In Android, how can I display an overflow like menu when button is clicked?

I am working on an android app and I want to make a button display a certain menu when clicked. For example, the google play music app has a overflow icon next to each icon, and when clicked, you are presented with a list of choices. How can i accomplish something liks that? http://i.stack.imgur.com/TZ3fU.png
Android Developer Guide has a tutorial:
http://developer.android.com/guide/topics/ui/menus.html#FloatingContextMenu
Also, given the situation, you might want this:
http://developer.android.com/guide/topics/ui/menus.html#PopupMenu
You can also use the Spinner widget. In case you are using Sherlock, you can use
If you want it backported you can use the v7 version of popupmenu
https://developer.android.com/reference/android/support/v7/widget/PopupMenu.html

Android: custom a menu create

I don't know which type of this menu. can anyone help me.
I want to create menu like this screen. When i click the button then pop-up the menu like this. I don't know how to achieve this. i do not know what type of this menu. and can it run on android 2.2?
Current popup menu called QuickAction Dialog in Android. you can customize it According to you need. see following good tutorial for creating QuickAction View in Android:
How to Create QuickAction Dialog in Android
Quick Actions Android
This is Quick Action 3d. Checkout source and example from here :)
This is not exactly a custom dialog. But, yes it is still a customized view. And it is more or less called Quick Action Dialog in android. I would suggest you to follow the tutorials below for generating an exactly same popover (or even better) with Android. Check the screenshot also.
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
https://github.com/lorensiuswlt/NewQuickAction3D
Reference

How to create menus like the attached image in Android

I want to create an android application in which each menu should seen like the attached image. Is there any possible way to create this types of menus in android..
I am a beginner in android ..if anyone knows how to make this types of menus.. please give me an example code, it will very helpful for me.
Check out TabActivity. Or this is what you need to go through http://developer.android.com/design/building-blocks/tabs.html
For adding menu for an tab you can use ActionBar instead of TabActivity. This will give you an option to add Spinner to the Tab. http://developer.android.com/design/patterns/actionbar.html
But actionBar is available for API level 11 and above.

Create Dropdown from button on menu

In android, I want to create a dropdown menu like the following:
I've seen some examples where there are just buttons, and no text (like QuickActionView), but none like this. If someone could direct me to some open source code, that'd be great, or point me in the correct direction.
Thank You in advance.
Android's ActionBar does exactly this. Unfortunately, it is only available for 3.0 and up. However, you could use ActionBarSherlock.

Implementing custom menu in android system

I am trying to find a way to customize the android menu in system level.I want to remove the existing android menu and replace the custom menu.Can any one done the replacement of default menu.Can any one help me how to do that?? or kindly share some useful links to do that.
Thanks in Advance..
Hope these links will be helpful to you,
http://www.codeproject.com/KB/android/AndroidMenusMyWay.aspx
Adding Custom Menu In Messege Activity in android
Android: customize application's menu (e.g background color)
check this:
http://developer.android.com/guide/topics/ui/menus.html
http://developer.android.com/guide/topics/resources/menu-resource.html

Categories

Resources