android ProgressDialog 不可点掉

pdRun  = new ProgressDialog(this);
        pdRun.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        pdRun.setMessage("  正在执行...");
        pdRun.setCancelable(false);

只需要设置一个属性

pdRun.setCancelable(false);

你可能感兴趣的:(android ProgressDialog 不可点掉)