public static interface DialogInterface.OnClickListener
android.content.DialogInterface.OnClickListener |
用于允许对话框的创建者在单击对话框上的项目时运行一些代码的界面。
Public methods |
|
---|---|
abstract void |
onClick(DialogInterface dialog, int which) 当单击对话框中的按钮时,将调用此方法。 |
void onClick (DialogInterface dialog, int which)
当单击对话框中的按钮时,将调用此方法。
Parameters | |
---|---|
dialog |
DialogInterface : The dialog that received the click. |
which |
int : The button that was clicked (e.g. BUTTON1 ) or the position of the item clicked. |