Companion
Properties
In this mode, a Determinate ProgressBar is shown inside the ProgressDialog for indicating Progress. It also has a TextView for numerically showing the Progress Value either as Percentage or as Fraction. Progress Value is shown as Percentage by Default which can be changed using showProgressTextAsFraction.
This theme is suitable for apps having a Dark Theme. This Constant SHOULD be passed explicitly in the Constructor for setting Dark Theme for ProgressDialog. Theme can be changed later by setting theme.
When this ThemeConstant is used, ProgressDialog's theme is automatically changed to match the System's theme each time before show is called. This Constant can be used starting from Android API Level 30 (Android 11) ONLY. Setting theme will throw IllegalArgumentException if this Constant is passed in method call in Android versions lower than Android 11.
The default Theme for ProgressDialog (even if it is not passed in Constructor). Suitable for apps having a Light Theme. Theme can be changed later by setting theme.