You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Uses Light Theme by Default. Note: Theme can be changed after Instantiation using setTheme(int themeConstant) method.
100
-
**IMPORTANT** : If you want to Instantiate ```ProgressDialog``` Class in a **Fragment**, use ```requireContext()``` method instead of ```this``` keyword for passing ```Context``` object. Similarly, for Instantiating ```ProgressDialog``` Class in **Inner Classes**, use ```YourActivity.this``` in **Java** or ```this@YourActivity``` in **Kotlin** instead of simple ```this``` keyword for passing ```Context``` object.
101
+
#### Uses Light Theme by Default.
102
+
> [!NOTE]
103
+
> Theme can be changed after Instantiation using setTheme(int themeConstant) method.
104
+
105
+
> [!IMPORTANT]
106
+
> If you want to Instantiate ```ProgressDialog``` Class in a **Fragment**, use ```requireContext()``` method instead of ```this``` keyword for passing ```Context``` object. Similarly, for Instantiating ```ProgressDialog``` Class in **Inner Classes**, use ```YourActivity.this``` in **Java** or ```this@YourActivity``` in **Kotlin** instead of simple ```this``` keyword for passing ```Context``` object.
107
+
101
108
#### Java Code:
102
109
```java
103
110
ProgressDialog progressDialog =newProgressDialog(this); //same as new ProgressDialog(this, ProgressDialog.THEME_LIGHT);
@@ -119,7 +126,9 @@ val progressDialog = ProgressDialog(this, ProgressDialog.THEME_DARK)
119
126
```
120
127
121
128
### Constructor for Alternate Mode
122
-
#### Default mode is Indeterminate mode. Note: Mode can be changed as and when necessary using in-built methods.
129
+
#### Default mode is Indeterminate mode.
130
+
> [!NOTE]
131
+
> Mode can be changed as and when necessary using in-built methods.
123
132
#### Java Code:
124
133
```java
125
134
ProgressDialog progressDialog =newProgressDialog(ProgressDialog.MODE_DETERMINATE,this); // for instantiating with Determinate mode
0 commit comments