コード例 #1
0
 /**
  * 显示 progressDialog
  *
  * @param context
  * @param msg
  * @param closeable
  */
 public static void showProgressDialog(Context context, String msg, boolean closeable) {
   if (progressDialog != null && progressDialog.isShowing() == true) {
     return;
   } else {
     progressDialog = SXProgressDialog.createDialog(context);
     progressDialog.setMessage(msg);
     progressDialog.setCloseable(closeable);
     progressDialog.show();
   }
 }
コード例 #2
0
 /** 移除 progressDialog */
 public static void removeProgressDialog() {
   if (progressDialog != null && progressDialog.isShowing()) {
     progressDialog.dismiss();
     progressDialog = null;
   }
 }