@MainThread public interface OnItemClickListener<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
onItemClick(View view,
E item,
int position)
Callback method to be invoked when an item in this AdapterView has
been clicked.
|
boolean onItemClick(@NonNull View view, @NonNull E item, int position)
view - the view that was clicked (this will be a view provided by the adapter).item - the data entity that was clicked.position - the position of the data entity in the adapter.