@Override
 protected void onPreExecute() {
   pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE);
   pDialog.getProgressHelper().setBarColor(context.getResources().getColor(R.color.primary));
   pDialog.setTitleText("Loading");
   pDialog.setCancelable(false);
   pDialog.show();
 }
Exemple #2
0
 @Override
 public void showProgress(String message) {
   mProgressdialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
   mProgressdialog.getProgressHelper().setBarColor(getResources().getColor(R.color.colorPrimary));
   mProgressdialog.setTitleText(message);
   mProgressdialog.setCancelable(false);
   mProgressdialog.show();
 }
 public void showLoadingDialog() {
   if (mLoadingDialog == null) {
     mLoadingDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
     mLoadingDialog.setCancelable(false);
     mLoadingDialog.setTitleText("数据加载中...");
   }
   mLoadingDialog.show();
 }