public View . OnClickListener getOnClickListener ( boolean adapterHasListener ) { if ( isClickable ( ) && adapterHasListener ) { if ( mViewHolderClickListener == null ) { mViewHolderClickListener = new ViewHolderClickListener <> ( this ) ; } } else { mViewHolderClickListener = null ; } return mViewHolderClickListener ; }
Get the OnClickListener to call when the user click on the item .