📌  相关文章
📜  android 上的警报对话框 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:20.004000             🧑  作者: Mango

代码示例1
new AlertDialog.Builder(this)
    .setTitle("Closing application")
    .setMessage("Are you sure you want to exit?")
    .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialog, int which) {

          }
     }).setNegativeButton("No", null).show();