dialoge box stay show in android

Solutions on MaxInterview for dialoge box stay show in android by the best coders in the world

showing results for - "dialoge box stay show in android"
Paola
12 Jun 2020
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}