AlertDialog.Builder setCancelable用法

AlertDialog.Builder的setCancelable

public AlertDialog.Builder setCancelable (boolean cancelable)

Since: API Level 1

Sets whether the dialog is cancelable or not default is true.

设置为false,按返回键不能退出。默认为true。

原文地址:https://www.cnblogs.com/exmyth/p/4964224.html