Dialog.SetCancelable(Boolean) 方法

定义

设置此对话框是否可以使用 KeyEvent#KEYCODE_BACK BACK 键取消。

[Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")]
public virtual void SetCancelable (bool flag);
[<Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")>]
abstract member SetCancelable : bool -> unit
override this.SetCancelable : bool -> unit

参数

flag
Boolean
属性

注解

设置此对话框是否可以使用 KeyEvent#KEYCODE_BACK BACK 键取消。

适用于 . 的 android.app.Dialog.setCancelable(boolean)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于