Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

OnItemActivatedListener

interface OnItemActivatedListener<K : Any!>
androidx.recyclerview.selection.OnItemActivatedListener

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

Summary

Public methods
abstract Boolean

Called when an item is "activated".

Public methods

onItemActivated

abstract fun onItemActivated(
    @NonNull item: ItemDetailsLookup.ItemDetails<K>,
    @NonNull e: MotionEvent
): Boolean

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
item ItemDetailsLookup.ItemDetails<K>: details of the item.
e MotionEvent: the event associated with item.
Return
Boolean true if the event was handled.