// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnBackPressListener.java
// public interface OnBackPressListener {
// 
//   void onBackPressed(DialogPlus dialogPlus);
// 
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnCancelListener.java
// public interface OnCancelListener {
//   void onCancel(DialogPlus dialog);
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnClickListener.java
// public interface OnClickListener {
// 
//   void onClick(DialogPlus dialog, View view);
// 
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnDismissListener.java
// public interface OnDismissListener {
//    void onDismiss(DialogPlus dialog);
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnItemClickListener.java
// public interface OnItemClickListener {
// 
//   void onItemClick(DialogPlus dialog, Object item, View view, int position);
// 
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnShowListener.java
// public interface OnShowListener {
//     void onShow(DialogPlus dialog);
// }


import android.app.Activity;
import android.content.Context;
import android.view.Display;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.BaseAdapter;
import android.widget.FrameLayout;
import com.orhanobut.dialogplus.listener.OnBackPressListener;
import com.orhanobut.dialogplus.listener.OnCancelListener;
import com.orhanobut.dialogplus.listener.OnClickListener;
import com.orhanobut.dialogplus.listener.OnDismissListener;
import com.orhanobut.dialogplus.listener.OnItemClickListener;
import com.orhanobut.dialogplus.listener.OnShowListener;
import java.util.Arrays;
    this.onItemClickListener = listener;
    return this;
  }

  /**
   * Set a global click listener to you dialog in order to handle all the possible click events. You can then
   * identify the view by using its id and handle the correct behaviour
   */
  public DialogPlusBuilder setOnClickListener(OnClickListener listener) {
    this.onClickListener = listener;
    return this;
  }

  public DialogPlusBuilder setOnShowListener(OnShowListener listener) {
      this.onShowListener = listener;
      return this;
  }

  public DialogPlusBuilder setOnDismissListener(OnDismissListener listener) {
    this.onDismissListener = listener;
    return this;
  }

  public DialogPlusBuilder setOnCancelListener(OnCancelListener listener) {
    this.onCancelListener = listener;
    return this;
  }

  public DialogPlusBuilder setOnBackPressListener(OnBackPressListener listener) {
    this.onBackPressListener = listener;
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnBackPressListener.java
// public interface OnBackPressListener {
// 
//   void onBackPressed(DialogPlus dialogPlus);
// 
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnCancelListener.java
// public interface OnCancelListener {
//   void onCancel(DialogPlus dialog);
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnClickListener.java
// public interface OnClickListener {
// 
//   void onClick(DialogPlus dialog, View view);
// 
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnDismissListener.java
// public interface OnDismissListener {
//    void onDismiss(DialogPlus dialog);
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnItemClickListener.java
// public interface OnItemClickListener {
// 
//   void onItemClick(DialogPlus dialog, Object item, View view, int position);
// 
// }
// 
// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/listener/OnShowListener.java
// public interface OnShowListener {
//     void onShow(DialogPlus dialog);
// }


// Path: dialogplus/src/main/java/com/orhanobut/dialogplus/DialogPlusBuilder.java
import android.app.Activity;
import android.content.Context;
import android.view.Display;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.BaseAdapter;
import android.widget.FrameLayout;
import com.orhanobut.dialogplus.listener.OnBackPressListener;
import com.orhanobut.dialogplus.listener.OnCancelListener;
import com.orhanobut.dialogplus.listener.OnClickListener;
import com.orhanobut.dialogplus.listener.OnDismissListener;
import com.orhanobut.dialogplus.listener.OnItemClickListener;
import com.orhanobut.dialogplus.listener.OnShowListener;
import java.util.Arrays;

    this.onItemClickListener = listener;
    return this;
  }

  /**
   * Set a global click listener to you dialog in order to handle all the possible click events. You can then
   * identify the view by using its id and handle the correct behaviour
   */
  public DialogPlusBuilder setOnClickListener(OnClickListener listener) {
    this.onClickListener = listener;
    return this;
  }

  public DialogPlusBuilder setOnShowListener(OnShowListener listener) {
      this.onShowListener = listener;
      return this;
  }

  public DialogPlusBuilder setOnDismissListener(OnDismissListener listener) {
    this.onDismissListener = listener;
    return this;
  }

  public DialogPlusBuilder setOnCancelListener(OnCancelListener listener) {
    this.onCancelListener = listener;
    return this;
  }

  public DialogPlusBuilder setOnBackPressListener(OnBackPressListener listener) {
    this.onBackPressListener = listener;
    return this;