No Progress Spinner In Progressdialog
I am trying to create a ProgressDialog as seen in just about every app on the Play Store now. I am using the code: getActivity().runOnUiThread(new Runnable() { @Overrid
Solution 1:
Check with style you use res/values/style and add new or change color
styles.xml
<stylename="MyDialogTheme"parent="Theme.AppCompat.Light.Dialog.Alert"><itemname="colorPrimary">@color/orange</item></style>
actyity
ProgressDialog progressDialog = new ProgressDialog(ProfilActivity.this,R.style.MyDialogTheme);
Solution 2:
If you are in a fragment use getActivity() instead of this
ProgressDialogprogressDialog=newProgressDialog(getActivity());
progressDialog.setMessage("[YOUR MESSAGE]");
progressDialog.setCancelable(true); // Check as required
progressDialog.show();*/
This one work for me :)
Solution 3:
Try this
ProgressDialogprogressDialog=newProgressDialog(context);
progressDialog.setMessage("[YOUR MESSAGE]");
progressDialog.setCancelable(true); // Check as required
progressDialog.show();
Post a Comment for "No Progress Spinner In Progressdialog"