使用和取消时调用下面的两个方法
private ProgressDialog pBar;
private void showWaitingDialog() {
pBar = new ProgressDialog(this);
pBar.setTitle("Title");
pBar.setMessage("请稍等...");
pBar.setProgressStyle(ProgressDialog.STYLE_SPINNER);
pBar.show();
}
private void cancelDialog() {
if (pBar != null && pBar.isShowing()) {
pBar.cancel();
pBar = null;
}
本文介绍了如何在应用中使用和取消ProgressDialog对话框,并提供了详细的方法实现步骤。
1016

被折叠的 条评论
为什么被折叠?



