public static interface ItemClickHelper.Callback<E>
To control which view can be clicked by the user, you should override
getClickableViews(int, int) and return appropriate set of clickable views.
You can use predefined clickable views like ClickableViews.NONE to make
specified view not clickable based on position and view type,
or ClickableViews.ITEM_VIEW to make only root view holder's view clickable.
Alternatively, you can provide your own set of the identifiers of the clickable views.
| Modifier and Type | Method and Description |
|---|---|
E |
get(int position)
Returns the element at the specified position.
|
ClickableViews |
getClickableViews(int position,
int viewType)
Returns information about all of the clickable views at specified position.
|
@NonNull E get(int position)
position - position of the element to return.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())@NonNull ClickableViews getClickableViews(int position, int viewType)
position - an index of the item.ClickableViews instance.