在Android中,弹出对话框使用AlertDialog.Builder方法. new AlertDialog.Builder(MainActivity.this).setTitle("本机设置") .setView(view) .setPositiveButton("确定",new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface v, int arg…
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.…