public static class ProgressDialog.Builder extends AbstractButtonBarDialogBuilder<ProgressDialog,ProgressDialog.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 and allow to indicate
a running progress.
|
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 and allow to indicate
a running progress.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
obtainStyledAttributes(int themeResourceId)
Obtains all relevant attributes from the current theme.
|
protected ProgressDialog |
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.
|
ProgressDialog.Builder |
setProgressBarColor(int color)
Sets the color of the progress bar of the dialog, which is created by the builder.
|
ProgressDialog.Builder |
setProgressBarPosition(ProgressDialog.ProgressBarPosition position)
Sets the position of the progress bar of the dialog, which is created by the builder.
|
ProgressDialog.Builder |
setProgressBarSize(int size)
Sets the size of the progress bar of the dialog, which is created by the builder.
|
ProgressDialog.Builder |
setProgressBarThickness(int thickness)
Sets the thickness of the progress bar of the dialog, which is created by the builder.
|
ProgressDialog |
show()
Creates a dialog with the arguments, which have been supplied to the builder and
immediately displays it.
|
setButtonBarDividerColor, 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 ProgressDialog.Builder setProgressBarColor(int color)
color - The color, which should be set, as an Integer valueProgressDialog.Builderpublic final ProgressDialog.Builder setProgressBarSize(int size)
size - The size, which should be set, in pixels as an Integer value. The size
must be at least 0ProgressDialog.Builderpublic final ProgressDialog.Builder setProgressBarThickness(int thickness)
thickness - The thickness, which should be set, in pixels as an Integer value. The
thickness must be at least 1ProgressDialog.Builderpublic final ProgressDialog.Builder setProgressBarPosition(ProgressDialog.ProgressBarPosition position)
position - The position, which should be set, as a value of the enum ProgressDialog.ProgressBarPosition. The position may either be LEFT,
TOP, RIGHT or BOTTOMProgressDialog.Builderpublic final ProgressDialog show()
ProgressDialogprotected final ProgressDialog onCreateDialog(android.content.Context context, int themeResourceId)
AbstractMaterialDialogBuilderonCreateDialog in class AbstractMaterialDialogBuilder<ProgressDialog,ProgressDialog.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 valueprotected final void obtainStyledAttributes(int themeResourceId)
AbstractMaterialDialogBuilderobtainStyledAttributes in class AbstractButtonBarDialogBuilder<ProgressDialog,ProgressDialog.Builder>themeResourceId - 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 style resource