Example usage for Java android.app ProgressDialog fields, constructors, methods, implement or subclass
The text is from its open source code.
int | STYLE_SPINNER Creates a ProgressDialog with a circular, spinning progress bar. |
int | STYLE_HORIZONTAL Creates a ProgressDialog with a horizontal progress bar. |
ProgressDialog(Context context) Creates a Progress dialog. | |
ProgressDialog(Context context, int theme) Creates a Progress dialog. |
void | cancel() Cancel the dialog. |
void | dismiss() Dismiss this dialog, removing it from the screen. |
T | findViewById(@IdRes int id) Finds the first descendant view with the given ID or null if the ID is invalid (< 0), there is no matching view in the hierarchy, or the dialog has not yet been fully created (for example, via #show() or #create() ). |
Button | getButton(int whichButton) Gets one of the buttons used in the dialog. |
Context | getContext() Retrieve the Context this Dialog is running in. |
int | getProgress() Gets the current progress. |
Window | getWindow() Retrieve the current Window for the activity. |
void | hide() Hide the dialog, but do not dismiss it. |
void | incrementProgressBy(int diff) Increments the current progress value. |
boolean | isShowing() |
boolean | requestWindowFeature(int featureId) Enable extended window features. |
void | setButton(CharSequence text, Message msg) |
void | setButton(int whichButton, CharSequence text, Message msg) Set a message to be sent when a button is pressed. |
void | setCancelable(boolean flag) Sets whether this dialog is cancelable with the KeyEvent#KEYCODE_BACK BACK key. |
void | setCanceledOnTouchOutside(boolean cancel) Sets whether this dialog is canceled when touched outside the window's bounds. |
void | setContentView(@NonNull View view, @Nullable ViewGroup.LayoutParams params) Set the screen content to an explicit view. |
void | setContentView(@LayoutRes int layoutResID) Set the screen content from a layout resource. |
void | setIcon(@DrawableRes int resId) Set resId to 0 if you don't want an icon. |
void | setIndeterminate(boolean indeterminate) Change the indeterminate mode for this ProgressDialog. |
void | setInverseBackgroundForced(boolean forceInverseBackground) |
void | setMax(int max) Sets the maximum allowed progress value. |
void | setMessage(CharSequence message) |
void | setOnCancelListener(@Nullable OnCancelListener listener) Set a listener to be invoked when the dialog is canceled. |
void | setOnDismissListener(@Nullable OnDismissListener listener) Set a listener to be invoked when the dialog is dismissed. |
void | setOnKeyListener(@Nullable OnKeyListener onKeyListener) Sets the callback that will be called if a key is dispatched to the dialog. |
void | setOnShowListener(@Nullable OnShowListener listener) Sets a listener to be invoked when the dialog is shown. |
void | setOwnerActivity(@NonNull Activity activity) Sets the Activity that owns this dialog. |
void | setProgress(int value) Sets the current progress. |
void | setProgressNumberFormat(String format) Change the format of the small text showing current and maximum units of progress. |
void | setProgressPercentFormat(NumberFormat format) Change the format of the small text showing the percentage of progress. |
void | setProgressStyle(int style) Sets the style of this ProgressDialog, either #STYLE_SPINNER or #STYLE_HORIZONTAL . |
void | setSecondaryProgress(int secondaryProgress) Sets the secondary progress. |
void | setTitle(CharSequence title) |
void | show() Start the dialog and display it on screen. |
ProgressDialog | show(Context context, CharSequence title, CharSequence message, boolean indeterminate) Creates and shows a ProgressDialog. |
ProgressDialog | show(Context context, CharSequence title, CharSequence message) Creates and shows a ProgressDialog. |
ProgressDialog | show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) Creates and shows a ProgressDialog. |
ProgressDialog | show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener) Creates and shows a ProgressDialog. |