java.lang.Object | |
↳ | com.pdftron.pdf.widget.recyclerview.ItemClickHelper |
Helper class to receive the click and long click events on the items of a recycler view
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | ItemClickHelper.OnItemClickListener | Callback interface invoked when an item is clicked. | |||||||||
interface | ItemClickHelper.OnItemLongClickListener | Callback interface invoked when an item is long clicked. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ItemClickHelper() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
attachToRecyclerView(RecyclerView recyclerView)
Calls this method to enable receiving click and long click events on its items.
| ||||||||||
void | onChildViewAttachedToWindow(View view) | ||||||||||
void | onChildViewDetachedFromWindow(View view) | ||||||||||
void |
setOnItemClickListener(ItemClickHelper.OnItemClickListener listener)
Sets the
ItemClickHelper.OnItemClickListener listener. | ||||||||||
void |
setOnItemLongClickListener(ItemClickHelper.OnItemLongClickListener listener)
Sets the
ItemClickHelper.OnItemLongClickListener listener. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Calls this method to enable receiving click and long click events on its items.
recyclerView | The recycler view |
---|
Sets the ItemClickHelper.OnItemClickListener
listener.
listener | The listener |
---|
Sets the ItemClickHelper.OnItemLongClickListener
listener.
listener | The listener |
---|