public void setOnSlideClickListener ( OnSlideClickListener slideClickListener ) { this . slideClickListener = slideClickListener ; if ( slideClickListener != null ) { setClickable ( true ) ; setOnClickListener ( this ) ; } else { setClickable ( false ) ; setOnClickListener ( null ) ; } }
Set the click listener for the slides and makes this view clickable