Most visited

Recently visited

Added in API level 1

DialogInterface.OnClickListener

public static interface DialogInterface.OnClickListener

android.content.DialogInterface.OnClickListener
Known Indirect Subclasses


用于允许对话框的创建者在单击对话框上的项目时运行一些代码的界面。

Summary

Public methods

abstract void onClick(DialogInterface dialog, int which)

当单击对话框中的按钮时,将调用此方法。

Public methods

onClick

Added in API level 1
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.

Hooray!