-
public interface FlexibleAdapter.OnItemClickListener
-
-
Method Summary
Modifier and Type Method Description abstract booleanonItemClick(View view, int position)Called when single tap occurs. -
-
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 eventposition- the adapter position of the item clicked
-
-
-
-