android.app.Dialog.onBackPressed()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(264)

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

Dialog.onBackPressed介绍

暂无

代码示例

代码示例来源:origin: H07000223/FlycoDialog_Master

@Override
public void onBackPressed() {
  if (mIsDismissAnim || mIsShowAnim || mAutoDismiss) {
    return;
  }
  super.onBackPressed();
}

代码示例来源:origin: ukanth/afwall

@Override
public void onBackPressed() {
  super.onBackPressed();
  if(failureCallback != null){
    failureCallback.then();
  }
}

代码示例来源:origin: DaxiaK/MyDiary

@Override
  public void onBackPressed() {
    if (isEditMode) {
      EditDiaryBackDialogFragment backDialogFragment = new EditDiaryBackDialogFragment();
      backDialogFragment.setTargetFragment(DiaryViewerDialogFragment.this, 0);
      backDialogFragment.show(getFragmentManager(), "backDialogFragment");
    } else {
      super.onBackPressed();
    }
  }
};

代码示例来源:origin: GitEliteNovice/CustomCamera

public void onBackPressed() {
    if (mExoPlayerFullscreen)
      closeFullscreenDialog();
    super.onBackPressed();
  }
};

代码示例来源:origin: smuyyh/SprintNBA

@Override
public void onBackPressed() {
  if (mIsDismissAnim || mIsShowAnim || mAutoDismiss) {
    return;
  }
  super.onBackPressed();
}

代码示例来源:origin: fangx/ZhiHuMVP

@Override
public void onBackPressed() {
  if (isDismissAnim || isShowAnim) {
    return;
  }
  super.onBackPressed();
}

代码示例来源:origin: huangshuyuan/UpdateDemo

@Override
public void onBackPressed() {
  if (isDismissAnim || isShowAnim) {
    return;
  }
  super.onBackPressed();
}

代码示例来源:origin: Yuphee/RecordVideo

@Override
public void onBackPressed() {
  if (mIsDismissAnim || mIsShowAnim || mAutoDismiss) {
    return;
  }
  super.onBackPressed();
}

代码示例来源:origin: GeoffLedak/ExoplayerFullscreen

public void onBackPressed() {
    if (mExoPlayerFullscreen)
      closeFullscreenDialog();
    super.onBackPressed();
  }
};

代码示例来源:origin: mabeijianxi/ViewLargerImageUtil

@Override
public void onBackPressed() {
  super.onBackPressed();
  if (mDialogClickListener != null) {
    mDialogClickListener.onClick(R.id.btn_cancel);
  }
}

代码示例来源:origin: sealtalk/sealtalk-android

@Override
  public void onBackPressed() {
    super.onBackPressed();
    if (onEvaluateDialogBehaviorListener != null) {
      onEvaluateDialogBehaviorListener.onCancel();
    }
  }
}

代码示例来源:origin: seemoo-lab/fitness-app

@Override
public void onBackPressed() {
  if (transferComplete) {
    Toast.makeText(getContext(), R.string.transmission_complete, Toast.LENGTH_SHORT).show();
    TransferProgressDialog.super.onBackPressed();
  } else {
    Toast.makeText(getContext(), R.string.transmission_in_progress, Toast.LENGTH_SHORT).show();
  }
}

相关文章