Is this an example of a AlertDialog or PopupWindow in Android? - android

http://img139.imageshack.us/img139/1203/devicei.png
I've seen this in a few apps, and i have expiremented with both PopupWindow, and AlertDialog and I was confused which this was.
Thanks

It's an AlertDialog. You can browse that app's source code here (look at com.sunlightlabs.android.congress.MainMenu).

Related

Android Input View (Dialog?)

I want to show an input dialog exactly like this:
On the android dev page I couldn't find a fitting dialog type? (Alerts, simple dialogs and confirmation dialogs)
I would appreciate it if someone could explain which component this is.
You should use simple Dialog fragment.
Refer following link http://stacktips.com/tutorials/android/android-dialog-fragment-example

Custom combo box in android?

How can i create a combo box in android like the picture bellow?
I can see only spinners in android. but i want like the picture.
Any one can help me??
Create a custom button, and on click show a popup with a ListView within it.
Also on click make the popup appear below the button.
NewQuickAction3D is a small android library to create QuickAction dialog with Gallery3D app style.
try this
hope help you..

Android POPUP Code

I would need an example code to create a popup in an activity. In the popup I would like to insert a number in a edittext and return it to the main activity.
Is this possible?
Please look an Google for this kind of questions:
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog

Is this a standard AlertDialog or is it custom?

I'm looking to replicate and improve upon the following AlertDialog in my app:
http://i.stack.imgur.com/aU3Ep.png
Is this a built-in AlertDialog, or was this made from scratch? If it was made from scratch, what control/widget is the number picker? Or is that built from scratch too?
Thanks!
btw.. screenshot is from Math Alarm Clock Pro
Looks like custom dialog made like explained here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
Kind of looks similar to this one:
http://www.quietlycoding.com/?p=5
So that would mean: custom made.
You find some interesting links if you search on google for "android NumberPicker"
Built in Dialogs are AlertDialog, DatePickerDialog, ProgressDialog, TimePickerDialog (see developer.android.com/reference/android/app/AlertDialog.html )
This explains the default AlertDialogs: http://developer.android.com/guide/topics/ui/dialogs.html
But there is one interesting function in AlertDialog (setView(...)) you could use to make the above (but you have to create the view by yourself - edittext and two buttons plus okay button - and assign the onclickevents). See the function here: http://developer.android.com/reference/android/app/AlertDialog.html#setView(android.view.View)
Just looks like a standard dialog set to have no title. It then has an EditText sandwiched between two buttons with a confirmation button at the bottom.
Edit: Here is an abridged snippet from my onCreateDialog override in an app of mine.
Dialog dialog;
dialog = new Dialog(this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);

How to create a popup

How to open a similar popup like the one that appears when you click on a contact icon in contacts? Is Dialog suitable for that? Or maybe PopupWindow?
It's a quickaction. Check this link.
It looks like PopupWindow is th way to go.

Categories

Resources