android.app.ProgressDialog.cancel()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中android.app.ProgressDialog.cancel()方法的一些代码示例,展示了ProgressDialog.cancel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressDialog.cancel()方法的具体详情如下:
包路径:android.app.ProgressDialog
类名称:ProgressDialog
方法名:cancel

ProgressDialog.cancel介绍

暂无

代码示例

代码示例来源:origin: MindorksOpenSource/android-mvp-architecture

@Override
public void hideLoading() {
  if (mProgressDialog != null && mProgressDialog.isShowing()) {
    mProgressDialog.cancel();
  }
}

代码示例来源:origin: MindorksOpenSource/android-mvp-architecture

@Override
public void hideLoading() {
  if (mProgressDialog != null && mProgressDialog.isShowing()) {
    mProgressDialog.cancel();
  }
}

代码示例来源:origin: WVector/AppUpdate

public static void cancelProgressDialog() {
  if (sCircleProgressDialog != null && sCircleProgressDialog.isShowing()) {
    sCircleProgressDialog.cancel();
    sCircleProgressDialog = null;
  }
}

代码示例来源:origin: WVector/AppUpdate

public static void cancelProgressDialog(Activity activity) {
  if (sCircleProgressDialog != null && sCircleProgressDialog.isShowing()) {
    if (sCircleProgressDialog.getOwnerActivity() == activity) {
      sCircleProgressDialog.cancel();
      sCircleProgressDialog = null;
    }
  }
}

代码示例来源:origin: stackoverflow.com

progress.cancel();

代码示例来源:origin: pili-engineering/PLDroidShortVideo

@Override
  public void cancel() {
    super.cancel();
    setProgress(0);
  }
}

代码示例来源:origin: LanSoSdk/LanSoEditor_common

public void release() {
    if (mProgressDialog != null) {
      mProgressDialog.cancel();
      mProgressDialog = null;
    }
  }
}

代码示例来源:origin: LanSoSdk/LanSoEditor_common

private void calcelProgressDialog() {
  if (mProgressDialog != null) {
    mProgressDialog.cancel();
    mProgressDialog = null;
  }
}

代码示例来源:origin: microshow/RxFFmpeg

@Override
  public void onError(String message) {
    if (mProgressDialog != null)
      mProgressDialog.cancel();
    showDialog("出错了 onError:" + message);
  }
});

代码示例来源:origin: LanSoSdk/LanSoEditor_common

private void calcelProgressDialog()
{
  if( mProgressDialog!=null){
    mProgressDialog.cancel();
    mProgressDialog=null;
  }
}

代码示例来源:origin: microshow/RxFFmpeg

@Override
public void onCancel() {
  if (mProgressDialog != null)
    mProgressDialog.cancel();
  showDialog("已取消");
}

代码示例来源:origin: LanSoSdk/LanSoEditor_advance

public void release() {
    if (mProgressDialog != null) {
      mProgressDialog.cancel();
      mProgressDialog = null;
    }
  }
}

代码示例来源:origin: LanSoSdk/LanSoEditor_advance

private void cancelProgressDialog() {
  if (progressDialog != null) {
    progressDialog.cancel();
    progressDialog = null;
  }
}
/**

代码示例来源:origin: LanSoSdk/LanSoEditor_advance

private void calcelProgressDialog() {
    if (progressDialog != null) {
      progressDialog.cancel();
      progressDialog = null;
    }
  }
}

代码示例来源:origin: anyRTC/anyRTC-RTMPC-Android

public void hiddenProgressDialog() {
  if (pd != null && pd.isShowing()) {
    pd.cancel();
  }
}
@Override

代码示例来源:origin: MindorksOpenSource/android-mvp-interactor-architecture

@Override
public void hideLoading() {
  if (mProgressDialog != null && mProgressDialog.isShowing()) {
    mProgressDialog.cancel();
  }
}

代码示例来源:origin: MindorksOpenSource/android-mvp-interactor-architecture

@Override
public void hideLoading() {
  if (mProgressDialog != null && mProgressDialog.isShowing()) {
    mProgressDialog.cancel();
  }
}

代码示例来源:origin: 296777513/pedometer

/**
 * 关闭对话框
 */
protected void cancelProgressDialog() {
  if (progressDialog != null && progressDialog.isShowing())
    progressDialog.cancel();
}

代码示例来源:origin: HelloChenJinJun/TestChat

public void cancelLoadDialog() {
  if (!isFinishing()) {
    if (mProgressDialog != null && mProgressDialog.isShowing()) {
      mProgressDialog.cancel();
    }
  }
}

代码示例来源:origin: gdutxiaoxu/CoordinatorLayoutExample

@Override
protected void onDestroy() {
  super.onDestroy();
  ActivityCollector.remove(this);
  if (dialog != null) {
    dialog.cancel();
    dialog.dismiss();
  }
  if (mPresenter != null) {
    mPresenter.onDestroy();
  }
}

相关文章