/** * 显示 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(); } }
/** 移除 progressDialog */ public static void removeProgressDialog() { if (progressDialog != null && progressDialog.isShowing()) { progressDialog.dismiss(); progressDialog = null; } }