public class ProgressDialog extends AbstractButtonBarDialog implements ProgressDialogDecorator
ProgressDialog#create() or
ProgressDialog#show() of the builder ProgressDialog.Builder can be used.| Modifier and Type | Class and Description |
|---|---|
static class |
ProgressDialog.Builder
A builder, which allows to create and show dialogs, which are designed according to Android
5's Material Design guidelines even on pre-Lollipop devices and allow to indicate a running
progress.
|
static class |
ProgressDialog.ProgressBarPosition
Contains all possible positions of the dialog's progress bar.
|
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Modifier | Constructor and Description |
|---|---|
protected |
ProgressDialog(android.content.Context context,
int themeResourceId)
Creates a dialog, which is designed according to Android 5's Material Design guidelines even
on pre-Lollipop devices and allows to indicate a running progress.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getProgressBarColor()
Returns the color of the dialog's progress bar.
|
ProgressDialog.ProgressBarPosition |
getProgressBarPosition()
Returns the position of the dialog's progress bar.
|
int |
getProgressBarSize()
Returns the size of the dialog's progress bar.
|
int |
getProgressBarThickness()
Returns the thickness of the dialog's progress bar.
|
protected void |
onAttachDecorators(android.view.View view)
The method, which is invoked when the dialog's decorators should be attached.
|
protected void |
onDetachDecorators()
The method, which is invoked when the dialog's decorators should be detached.
|
void |
onRestoreInstanceState(android.os.Bundle savedInstanceState) |
android.os.Bundle |
onSaveInstanceState() |
void |
setProgressBarColor(int color)
Sets the color of the dialog's progress bar.
|
void |
setProgressBarPosition(ProgressDialog.ProgressBarPosition position)
Sets the position of the dialog's progress bar.
|
void |
setProgressBarSize(int size)
Sets the size of the dialog's progress bar.
|
void |
setProgressBarThickness(int thickness)
Sets the thickness of the dialog's progress bar.
|
areButtonsStacked, getButton, getButtonBarDividerColor, getButtonTextColor, isButtonBarDividerShown, setButtonBarDividerColor, setButtonTextColor, setNegativeButton, setNegativeButton, setNeutralButton, setNeutralButton, setPositiveButton, setPositiveButton, showButtonBarDivider, stackButtonsaddAllValidators, addValidator, getValidators, removeAllValidators, removeValidatorgetHeaderBackground, getHeaderDividerColor, getHeaderHeight, getHeaderIcon, isHeaderDividerShown, isHeaderShown, setHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDividergetBackground, getIcon, getMessage, getMessageColor, getTitle, getTitleColor, onStart, onStop, setBackground, setBackground, setBackgroundColor, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setTitle, setTitleColor, setView, setViewaddContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onSearchRequested, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenuclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextsetCancelable, setOnCancelListener, setOnDismissListener, setOnShowListenergetBackground, getIcon, getMessage, getMessageColor, getTitle, getTitleColor, setBackground, setBackground, setBackgroundColor, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setTitle, setTitle, setTitleColor, setView, setViewgetHeaderBackground, getHeaderDividerColor, getHeaderHeight, getHeaderIcon, isHeaderDividerShown, isHeaderShown, setHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDivideraddAllValidators, addValidator, getValidators, removeAllValidators, removeValidatorprotected ProgressDialog(android.content.Context context,
int themeResourceId)
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. The resource id must correspond to a valid themepublic final int getProgressBarColor()
ProgressDialogDecoratorgetProgressBarColor in interface ProgressDialogDecoratorInteger valuepublic final void setProgressBarColor(int color)
ProgressDialogDecoratorsetProgressBarColor in interface ProgressDialogDecoratorcolor - The color, which should be set, as an Integer valuepublic final int getProgressBarSize()
ProgressDialogDecoratorgetProgressBarSize in interface ProgressDialogDecoratorInteger valuepublic final void setProgressBarSize(int size)
ProgressDialogDecoratorsetProgressBarSize in interface ProgressDialogDecoratorsize - The size, which should be set, in pixels as an Integer value. The size must
be at least 0public final int getProgressBarThickness()
ProgressDialogDecoratorgetProgressBarThickness in interface ProgressDialogDecoratorInteger valuepublic final void setProgressBarThickness(int thickness)
ProgressDialogDecoratorsetProgressBarThickness in interface ProgressDialogDecoratorthickness - The thickness, which should be set, in pixels as an Integer value. The
thickness must be at least 1public final ProgressDialog.ProgressBarPosition getProgressBarPosition()
ProgressDialogDecoratorgetProgressBarPosition in interface ProgressDialogDecoratorProgressDialog.ProgressBarPosition. The position may either be LEFT, TOP,
RIGHT or BOTTOMpublic final void setProgressBarPosition(ProgressDialog.ProgressBarPosition position)
ProgressDialogDecoratorsetProgressBarPosition in interface ProgressDialogDecoratorposition - The position, which should be set, as a value of the enum ProgressDialog.ProgressBarPosition. The position may either be LEFT, TOP,
RIGHT or BOTTOMpublic final android.os.Bundle onSaveInstanceState()
onSaveInstanceState in class AbstractButtonBarDialogpublic final void onRestoreInstanceState(android.os.Bundle savedInstanceState)
onRestoreInstanceState in class AbstractButtonBarDialogprotected final void onAttachDecorators(android.view.View view)
AbstractMaterialDialogonAttachDecorators in class AbstractButtonBarDialogview - The root view of the view hierarchy, which should be modified by the decorators, as
an instance of the class View. The view may not be nullprotected final void onDetachDecorators()
AbstractMaterialDialogonDetachDecorators in class AbstractButtonBarDialog