public static interface

ItemSingleTapDetector.Callback

com.shinobicontrols.grids.supplement.ItemSingleTapDetector.Callback

Class Overview

Callback to be invoked when an item in the grid has been single tapped.

Summary

Public Methods
abstract void onItemSingleTap(RecyclerView.ViewHolder holder, int position)

The callback method to be invoked when an item in the grid is single tapped.

Public Methods

public abstract void onItemSingleTap (RecyclerView.ViewHolder holder, int position)

The callback method to be invoked when an item in the grid is single tapped. More specifically, this will be called on the up motion of the single tap gesture. To translate the given position into a column index or a row index use the getColumnIndexForPosition(int) and getRowIndexForPosition(int) methods. The GridRecyclerView can be retrieved from the ShinobiGridView via the getHeaderRecyclerView() and getDataRecyclerView() methods.

Parameters
holder the ViewHolder for the item that has been single tapped
position the position of the item that has been single tapped