AlertDialog.Builder的setCancelable
publicAlertDialog.BuildersetCancelable(boolean cancelable)
Since:API Level 1
Sets whether the dialog is cancelable or not default is true.
设置为false,按返回键不能退出。默认为true。
本文介绍如何使用AlertDialog.Builder的setCancelable方法来控制对话框是否可以通过返回键关闭,默认情况下对话框是可以被取消的。
AlertDialog.Builder的setCancelable
Sets whether the dialog is cancelable or not default is true.
设置为false,按返回键不能退出。默认为true。
3428

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