Package 

Interface FlexibleAdapter.OnItemClickListener

    • Method Summary

      Modifier and Type Method Description
      abstract boolean onItemClick(View view, int position) Called when single tap occurs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onItemClick

         abstract boolean onItemClick(View view, int position)

        Called when single tap occurs.

        The click event is generated from the itemView or any view inside it (if registered).

        Here, we check if one of the selection mode ({@code SINGLE or MULTI}) is enabled in orderto activate the itemView.To register the click event to any subview, just assign the ViewHolder instance as clicklistener to that view.
        Parameters:
        view - the view that generated the event
        position - the adapter position of the item clicked