1class CustomListener implements View.OnClickListener {
2 private final Dialog dialog;
3
4 public CustomListener(Dialog dialog) {
5 this.dialog = dialog;
6 }
7
8 @Override
9 public void onClick(View v) {
10
11 // Do whatever you want here
12
13 // If you want to close the dialog, uncomment the line below
14 //dialog.dismiss();
15 }
16}