public final class SimpleDialog extends Object
SimpleDialog.with(this).showAlertDialog("Hello!");
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleDialog.DialogAdapter
A class with empty implementations of all methods in the DialogListener interface.
|
static interface |
SimpleDialog.DialogListener |
| Modifier and Type | Method and Description |
|---|---|
void |
setDialogsCancelable(boolean cancelable)
Globally sets whether dialogs created with show_Xxx_Dialog(...)
will display a Cancel button.
|
void |
setDialogsIcon(int iconID)
Globally sets whether dialogs created with show_Xxx_Dialog(...)
to display the given icon.
|
void |
setDialogsTitle(int titleID)
Globally sets the title that dialogs created with show_Xxx_Dialog(...)
should display.
|
void |
setDialogsTitle(String title)
Globally sets the title that dialogs created with show_Xxx_Dialog(...)
should display.
|
AlertDialog |
showAlertDialog(int messageID)
Shows an alert dialog to display a message to the user.
|
AlertDialog |
showAlertDialog(int messageID,
int titleID)
Shows an alert dialog to display a message to the user.
|
AlertDialog |
showAlertDialog(String message)
Shows an alert dialog to display a message to the user.
|
AlertDialog |
showAlertDialog(String message,
String title)
Shows an alert dialog to display a message to the user.
|
AlertDialog |
showCheckboxInputDialog(boolean[] checkedItems,
int itemsID)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showCheckboxInputDialog(boolean[] checkedItems,
String... items)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showCheckboxInputDialog(int itemsID)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showCheckboxInputDialog(int messageID,
boolean[] checkedItems,
int itemsID)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showCheckboxInputDialog(int messageID,
int itemsID)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showCheckboxInputDialog(String... items)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showCheckboxInputDialog(String message,
boolean[] checkedItems,
String... items)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showCheckboxInputDialogWithMessage(String message,
String... items)
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset
of a group of multiple checkbox input items.
|
AlertDialog |
showConfirmDialog(int messageID)
Shows an confirm dialog to ask a yes/no question to the user.
|
AlertDialog |
showConfirmDialog(int messageID,
int positiveButtonTextID,
int negativeButtonTextID)
Shows an confirm dialog to ask a yes/no question to the user.
|
AlertDialog |
showConfirmDialog(int messageID,
int positiveButtonTextID,
int negativeButtonTextID,
int titleID)
Shows an confirm dialog to ask a yes/no question to the user.
|
AlertDialog |
showConfirmDialog(String message)
Shows an confirm dialog to ask a yes/no question to the user.
|
AlertDialog |
showConfirmDialog(String message,
String positiveButtonText,
String negativeButtonText)
Shows an confirm dialog to ask a yes/no question to the user.
|
AlertDialog |
showConfirmDialog(String message,
String positiveButtonText,
String negativeButtonText,
String title)
Shows an confirm dialog to ask a yes/no question to the user.
|
DatePickerDialog |
showDateInputDialog()
Shows a date picker dialog to prompt the user to select a date.
|
DatePickerDialog |
showDateInputDialog(int startYear,
int startMonth,
int startDay)
Shows a date picker dialog to prompt the user to select a date.
|
DatePickerDialog |
showDateInputDialog(String message)
Shows a date picker dialog to prompt the user to select a date.
|
DatePickerDialog |
showDateInputDialog(String message,
int startYear,
int startMonth,
int startDay)
Shows a date picker dialog to prompt the user to select a date.
|
AlertDialog |
showInputDialog(int messageID)
Shows an input dialog to prompt the user for a single text input string.
|
AlertDialog |
showInputDialog(int messageID,
int positiveButtonTextID)
Shows an input dialog to prompt the user for a single text input string.
|
AlertDialog |
showInputDialog(int messageID,
int positiveButtonTextID,
int titleID)
Shows an input dialog to prompt the user for a single text input string.
|
AlertDialog |
showInputDialog(String message)
Shows an input dialog to prompt the user for a single text input string.
|
AlertDialog |
showInputDialog(String message,
String positiveButtonText)
Shows an input dialog to prompt the user for a single text input string.
|
AlertDialog |
showInputDialog(String message,
String positiveButtonText,
String title)
Shows an input dialog to prompt the user for a single text input string.
|
AlertDialog |
showListInputDialog(int itemsID)
Shows a list input dialog to allow the user to tap one of several choices.
|
AlertDialog |
showListInputDialog(String... items)
Shows a list input dialog to allow the user to tap one of several choices.
|
AlertDialog |
showListInputDialog(String message,
int itemsID)
Shows a list input dialog to allow the user to tap one of several choices.
|
AlertDialog |
showListInputDialogWithMessage(String message,
String... items)
Shows a list input dialog to allow the user to tap one of several choices.
|
AlertDialog |
showMultiInputDialog(int promptsID)
Shows a multiple-input dialog to prompt the user for multiple text input strings.
|
AlertDialog |
showMultiInputDialog(int messageID,
int promptsID)
Shows a multiple-input dialog to prompt the user for multiple text input strings.
|
AlertDialog |
showMultiInputDialog(String... prompts)
Shows a multiple-input dialog to prompt the user for multiple text input strings.
|
AlertDialog |
showMultiInputDialogWithMessage(String message,
String... prompts)
Shows a multiple-input dialog to prompt the user for multiple text input strings.
|
SimpleProgressDialog |
showProgressDialog()
Shows a progress dialog with a progress bar.
|
SimpleProgressDialog |
showProgressDialog(String message)
Shows a progress dialog with a progress bar.
|
SimpleProgressDialog |
showProgressDialog(String message,
int max)
Shows a progress dialog with a progress bar.
|
AlertDialog |
showRadioInputDialog(int itemsID)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
AlertDialog |
showRadioInputDialog(int checkedIndex,
int itemsID)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
AlertDialog |
showRadioInputDialog(int messageID,
int checkedIndex,
int itemsID)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
AlertDialog |
showRadioInputDialog(int checkedIndex,
String... items)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
AlertDialog |
showRadioInputDialog(String... items)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
AlertDialog |
showRadioInputDialog(String message,
int checkedIndex,
String... items)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
AlertDialog |
showRadioInputDialogWithMessage(int messageID,
int itemsID)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
AlertDialog |
showRadioInputDialogWithMessage(String message,
String... items)
Shows a radio button dialog to prompt the user to check exactly one
of a group of multiple radio button input items.
|
TimePickerDialog |
showTimeInputDialog()
Shows a time picker dialog to prompt the user to select a time of day.
|
TimePickerDialog |
showTimeInputDialog(int startHour,
int startMinute)
Shows a time picker dialog to prompt the user to select a time of day.
|
TimePickerDialog |
showTimeInputDialog(String message)
Shows a time picker dialog to prompt the user to select a time of day.
|
TimePickerDialog |
showTimeInputDialog(String message,
int startHour,
int startMinute)
Shows a time picker dialog to prompt the user to select a time of day.
|
static SimpleDialog |
with(Context context)
Returns a singleton SimpleDialog instance bound to the given context.
|
static SimpleDialog |
with(Context context,
SimpleDialog.DialogListener listener)
Returns a singleton SimpleMedia instance bound to the given context and listener.
|
static SimpleDialog |
with(View context)
Returns a singleton SimpleDialog instance bound to the given view's context.
|
public static SimpleDialog with(Context context)
public static SimpleDialog with(View context)
public static SimpleDialog with(Context context, SimpleDialog.DialogListener listener)
public AlertDialog showAlertDialog(String message)
public AlertDialog showAlertDialog(String message, String title)
public AlertDialog showAlertDialog(@StringRes int messageID)
public AlertDialog showAlertDialog(@StringRes int messageID, @StringRes int titleID)
public AlertDialog showConfirmDialog(String message)
public AlertDialog showConfirmDialog(String message, String positiveButtonText, String negativeButtonText)
public AlertDialog showConfirmDialog(String message, String positiveButtonText, String negativeButtonText, String title)
public AlertDialog showConfirmDialog(@StringRes int messageID)
public AlertDialog showConfirmDialog(@StringRes int messageID, @StringRes int positiveButtonTextID, @StringRes int negativeButtonTextID)
public AlertDialog showConfirmDialog(@StringRes int messageID, @StringRes int positiveButtonTextID, @StringRes int negativeButtonTextID, @StringRes int titleID)
public AlertDialog showInputDialog(String message)
public AlertDialog showInputDialog(String message, String positiveButtonText)
public AlertDialog showInputDialog(String message, String positiveButtonText, String title)
public AlertDialog showInputDialog(@StringRes int messageID)
public AlertDialog showInputDialog(@StringRes int messageID, @StringRes int positiveButtonTextID)
public AlertDialog showInputDialog(@StringRes int messageID, @StringRes int positiveButtonTextID, @StringRes int titleID)
public AlertDialog showMultiInputDialog(String... prompts)
public AlertDialog showMultiInputDialogWithMessage(String message, String... prompts)
public AlertDialog showMultiInputDialog(@ArrayRes int promptsID)
public AlertDialog showMultiInputDialog(@StringRes int messageID, @ArrayRes int promptsID)
public AlertDialog showListInputDialog(@ArrayRes int itemsID)
public AlertDialog showListInputDialog(String message, @ArrayRes int itemsID)
public AlertDialog showListInputDialog(String... items)
public AlertDialog showListInputDialogWithMessage(String message, String... items)
public AlertDialog showCheckboxInputDialog(String... items)
public AlertDialog showCheckboxInputDialog(boolean[] checkedItems, String... items)
public AlertDialog showCheckboxInputDialogWithMessage(String message, String... items)
public AlertDialog showCheckboxInputDialog(String message, boolean[] checkedItems, String... items)
public AlertDialog showCheckboxInputDialog(@ArrayRes int itemsID)
public AlertDialog showCheckboxInputDialog(boolean[] checkedItems, @ArrayRes int itemsID)
public AlertDialog showCheckboxInputDialog(@StringRes int messageID, @ArrayRes int itemsID)
public AlertDialog showCheckboxInputDialog(@StringRes int messageID, boolean[] checkedItems, @ArrayRes int itemsID)
public AlertDialog showRadioInputDialog(String... items)
public AlertDialog showRadioInputDialogWithMessage(String message, String... items)
public AlertDialog showRadioInputDialog(int checkedIndex, String... items)
public AlertDialog showRadioInputDialog(String message, int checkedIndex, String... items)
public AlertDialog showRadioInputDialog(@ArrayRes int itemsID)
public AlertDialog showRadioInputDialogWithMessage(@StringRes int messageID, @ArrayRes int itemsID)
public AlertDialog showRadioInputDialog(int checkedIndex, @ArrayRes int itemsID)
public AlertDialog showRadioInputDialog(@StringRes int messageID, int checkedIndex, @ArrayRes int itemsID)
public TimePickerDialog showTimeInputDialog()
public TimePickerDialog showTimeInputDialog(String message)
public TimePickerDialog showTimeInputDialog(int startHour, int startMinute)
public TimePickerDialog showTimeInputDialog(String message, int startHour, int startMinute)
public DatePickerDialog showDateInputDialog()
public DatePickerDialog showDateInputDialog(String message)
public DatePickerDialog showDateInputDialog(int startYear, int startMonth, int startDay)
public DatePickerDialog showDateInputDialog(String message, int startYear, int startMonth, int startDay)
public SimpleProgressDialog showProgressDialog()
public SimpleProgressDialog showProgressDialog(String message)
public SimpleProgressDialog showProgressDialog(String message, int max)
public void setDialogsCancelable(boolean cancelable)
public void setDialogsIcon(@DrawableRes int iconID)
public void setDialogsTitle(String title)
public void setDialogsTitle(@StringRes int titleID)