code: private void onCommonClick() {
          AlertDialog.build(this)
                  .setTitle("标题")
                  .setMessage("提示信息")
                  .setNeutralButton("忽略", (dialog, which) -> {
                      Toast.makeText(MainActivity.this, "点击了忽略", Toast.LENGTH_SHORT).show();
                  })
                  .setNegativeButton("取消", (dialog, which) -> {
                      Toast.makeText(MainActivity.this, "点击了取消", Toast.LENGTH_SHORT).show();
                  })
                  .setPositiveButton("好的", (dialog, which) -> {
                      Toast.makeText(MainActivity.this, "点击了确定", Toast.LENGTH_SHORT).show();
                  })
                  .show();
  
          //  Button被点击后，不调用dialog.dismiss()，因为AlertDialog会自动调用。
      }
docs: 显示正常用法的按钮。