我打算用layout_weight=1创建3个按钮,对自定义对话框不感兴趣。所以我写了下面的代码。它不起作用。总是是按钮给我null。这段代码有什么问题?AlertDialogdialog=newAlertDialog.Builder(this).create();dialog.setIcon(R.drawable.alert_icon);dialog.setTitle("title");dialog.setMessage("Message");dialog.setButton(AlertDialog.BUTTON_POSITIVE,"Yes",newDialogInterface.O