public static class MaterialDialog.Builder extends AbstractScrollableDialogBuilder<MaterialDialog,MaterialDialog.Builder>
| Constructor and Description |
|---|
Builder(android.content.Context context)
Creates a new builder, which allows to create dialogs, which are designed according to
Android 5's Material Design guidelines even on pre-Lollipop devices.
|
Builder(android.content.Context context,
int themeResourceId)
Creates a new builder, which allows to create dialogs, which are designed according to
Android 5's Material Design guidelines even on pre-Lollipop devices.
|
| Modifier and Type | Method and Description |
|---|---|
protected MaterialDialog |
onCreateDialog(android.content.Context context,
int themeResourceId)
The method, which is invoked on subclasses in order to create the dialog, which is configured
by the builder.
|
MaterialDialog |
show()
Creates a dialog with the arguments, which have been supplied to the builder and
immediately displays it.
|
obtainStyledAttributes, showDividersOnScrollsetAdapter, setItemColor, setItems, setItems, setMultiChoiceItems, setMultiChoiceItems, setMultiChoiceItems, setOnItemSelectedListener, setSingleChoiceItems, setSingleChoiceItems, setSingleChoiceItemssetButtonBarDividerColor, setButtonTextColor, setNegativeButton, setNegativeButton, setNeutralButton, setNeutralButton, setPositiveButton, setPositiveButton, showButtonBarDivider, stackButtonsaddAllValidators, addValidatorsetHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDividercreate, getContext, getDialog, self, setBackground, setBackground, setBackgroundColor, setCancelable, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setOnCancelListener, setOnDismissListener, setOnShowListener, setTitle, setTitle, setTitleColor, setView, setViewpublic Builder(android.content.Context context)
context - The context, which should be used by the builder, as an instance of the class
Context. The context may not be nullpublic Builder(android.content.Context context,
int themeResourceId)
context - The context, which should be used by the builder, as an instance of the class
Context. The context may not be nullthemeResourceId - The resource id of the theme, which should be used by the dialog, as an Integer value. The resource id must correspond to a valid themepublic final MaterialDialog show()
MaterialDialogprotected final MaterialDialog onCreateDialog(android.content.Context context, int themeResourceId)
AbstractMaterialDialogBuilderonCreateDialog in class AbstractMaterialDialogBuilder<MaterialDialog,MaterialDialog.Builder>context - The context, which should be used by the dialog, as an instance of the class Context. The context may not be nullthemeResourceId - The resource id of the theme, which should be used by the dialog, as an Integer value