示例#1
0
 /**
  * 显示加载完成框
  *
  * @param resId 显示的文字
  * @param showProcess 是否显示progressBar的转圈
  */
 public void showProcessDialog(int resId, boolean showProcess) {
   if (process == null) {
     process = new ProcessDialog(this, getString(resId), false);
   } else {
     process.updateView(getString(resId), false);
   }
   if (!process.isShowing()) {
     if (!this.isFinishing()) {
       process.show();
     }
   }
 }
示例#2
0
 /**
  * 显示loading框
  *
  * @param msg 显示的文字内容
  */
 public void showProcessDialog(String msg) {
   if (process == null) {
     process = new ProcessDialog(this, msg);
   } else {
     process.updateView(msg);
   }
   if (!process.isShowing()) {
     if (!this.isFinishing()) {
       process.show();
     }
   }
 }
示例#3
0
 /** 关闭loading框 */
 public void dissmissProcessDialog() {
   if (process != null && process.isShowing()) {
     process.dismiss();
   }
 }