OnItemActivatedListener

public interface OnItemActivatedListener<K>


Register an OnItemActivatedListener to be notified when an item is activated (tapped or double clicked).

Parameters
<K>

Selection key type. @see StorageStrategy for supported types.

Summary

Public methods

abstract boolean

Called when an item is "activated".

Public methods

onItemActivated

Added in 1.0.0
abstract boolean onItemActivated(
    @NonNull ItemDetailsLookup.ItemDetails<K> item,
    @NonNull MotionEvent e
)

Called when an item is "activated". An item is activated, for example, when no selection exists and the user taps an item with her finger, or double clicks an item with a pointing device like a Mouse.

Parameters
@NonNull ItemDetailsLookup.ItemDetails<K> item

details of the item.

@NonNull MotionEvent e

the event associated with item.

Returns
boolean

true if the event was handled.