I easily creating context menu but how to create menu Like a Context Menu just like picture. I unable to code like this. Is it possible to create in Android.This Menu Not a on middle of the mobile, it is just few portion overlap the clicking image.
You need to design custom spinner component which will be displayed on click of the image
This link may help you:
Custom spinner drop down menu
Related
I'm needing help creating a customizable menu for my Android app. Is it possible to create a RecyclerView for the menu, create a layout for the cell, and do a for loop for the menu item name and image? Or do I need to create an actual navigation menu in my layout directory? Thank you!
iOS Preview
Android Preview
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.
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.
How to achieve a menu similar to the one in the image? I have a camera preview and would like to manipulate some of the colors using a seek bar. How can I display such a menu with transparent background and what is the name of that kind of menu?
You can do that with help of context menu
may be this tutorial will help u out to built the this type pf menu
but in case of context menu there is a long click
check them out these are some of the examples of context menu
http://www.anddev.org/creating_a_contextmenu_on_a_listview-t2438.html
http://coderzheaven.com/2011/03/context-menu-in-android/
i want to show dialog like attached Image. an image to the left and text
with single selection.
any one guide me how to achieve this?
For that you have to customize the Context Menu because native context menu doesn't support for icon display inside the dialog, instead it only supports the text to be displayed inside each item.
The image which you have mentioned here is customized context menu with icon. Here is the same example which you want:
Source code for the above link: http://code.google.com/p/iconcontextmenu/
To create the dialog like the image is showing, for this you can use context menu. And if you want the dialog like that only then let me know.