public class DialogUtils
extends java.lang.Object
DialogUtils.quickDialog(this, "Test Message"); //Shows an alert dialog| Constructor and Description |
|---|
DialogUtils() |
| Modifier and Type | Method and Description |
|---|---|
static android.content.DialogInterface.OnClickListener |
closeDialogListener()
Simple listener event that closes the current dialog event when fired.
|
static android.app.AlertDialog |
quickDialog(android.app.Activity context,
java.lang.String message)
Show a model dialog box.
|
public static android.app.AlertDialog quickDialog(android.app.Activity context,
java.lang.String message)
android.app.AlertDialog object is returned so that
you can specify an OnDismissListener (or other listeners) if required.
Note: show() is already called on the AlertDialog being returned.context - The current Context or Activity that this method is called from.message - Message to display in the dialog.public static android.content.DialogInterface.OnClickListener closeDialogListener()