code: public void setOnSlideClickListener(OnSlideClickListener slideClickListener) {
          this.slideClickListener = slideClickListener;
          if (slideClickListener != null) {
              setClickable(true);
              setOnClickListener(this);
          } else {
              setClickable(false);
              setOnClickListener(null);
          }
      }
docs: Set the click listener for the slides and makes this view clickable
  
  @param slideClickListener the click listener (null if you want to remove the current one)