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。

posted @ 2015-11-14 13:33  牧之丨  阅读(1424)  评论(0编辑  收藏  举报