I was searching for a way to create a pop up when i long click an ImageView, and i've seen many answers of ContextMenu but what i saw from ContextMenu is that it takes the whole window, is there a way to achieve something like this? a small list of options?
read on Android DialogFragment or dialogs, you can create your own layout and remove the backdrop.
You can also look at other open source projects like this one: Tooltips
Related
I am trying to make similar layout to this one.
I achieved everything except that pop up window (saying "Perfect"). How to make this? Will pop up windows? Dialog or somehow else?
The screenshoted layout look like a WebView to me. Thus you could try to take all advantage of the WebView to create any html-based layout.
The pop-up could also be a custom dialog, or just a div on top the main layout or whatever. For example, check this.
There are 2 ways you can approach this.
If you want a view above another one you can use FramLayout. Tutorial here.
If you want it to be a dialog you can follow this tutorial Tutorial here
I need to create a List view. However this list view is somewhat of a pull down menu. That is, I have to create a button on top of screen, where on clicking it, a list view will be displayed (pulled down) from top.
Can some one give me an idea about this? I mean, what is this component in Android and how do I go about it creating it?
I know the normal way of creating a list view but not this.
Hey thanks all for your replies i finally got want i wanted to implement.The following link helped me achieve it:
http://techdroid.kbeanie.com/2009/08/android-sliding-drawer-example.html
Typically you would use a Single Choice Dialog.
http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList
If you want to do it Pull-down-from-top. You'll need to use Panel Custom view from this project.
If a pull-from-below will suffice, use a Sliding Drawer. (From Android 3.0, Sliding Drawer can be configured to be pulled down aswell. See Here)
Have the Listview inside the Drawer/Panel.
I am new in android and I have a view which is in the attach image. I have to open this view after clicking on list item, but I am not finding any proper way to solve this please suggest me how can i open a dialog like in Image.
Check PopupWindow control in android developers, does exactly what you want. There are numerous tutorials on the web on how to customize, animate, have functionality etc. It has an onCreate method and in simple words it works just like an Activity with specific bounds. It can be attached and shown anywhere and anytime. It's actually quite useful. When you don't want to use dialogs this is the best option.
I am developing an application in android. I have an Activity where I have a couple of buttons. Among them when I click on one button, I want to get dropdown like iPhone default picker.
To achieve that, I am using Android wheel concept. I have implemented like this, when I click on the button, it is calling another activity where my required custom layout is shown. Problem is custom layout should come from bottom of the screen in the same activity where the button I am clicking exists.
I have attached a screenshot. I want to achieve as shown in the screenshot (missing).
Please help me providing the required solution. Pardon me if there any mistakes in my question. This is the first time to ask a question.
Since the lack of a screenshot that helps to understand your issue, this is more some kind of guess: Are you known to the concept of Spinners in Android? They provide a dropdown mechanism and are easily implemented.
I have a menu for about, exit.
But i need to create another static menu for options.
I will prefer to be at the top of the list that i have.
like:
Create, Edit
List
and when i press the menu button to open the (Exit,About).
If You can help, it will be perfect.
Thank you , have a good day.
Please see this post, and this one. The second post has nothing to do with what you want, it's just a nifty way to spruce up your UI by adding a QuickAction. The first post shows you how to build an "ActionBar" for Android.