Code example for DialogInterface.OnClickListener

Methods: onClick

0
    } 
 
    @Override 
    public void onClick(DialogInterface dialog, int which) {
        if (mOnClickListener != null) {
            mOnClickListener.onClick(dialog, which);
        } else { 
            mOnDoneListener.onFinishInputDialog(txtInput.getText().toString());
            this.dismiss();
        } 
    } 
 
    @Override 
    public void onClick(View v) {
        txtInput.setText("");
        txtInput.requestFocus();
    } 
 
    @Override 
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
        if (mOnDoneListener != null) {