I have implemented onClick listener to my ViewHolder for my RecyclerView
But when I perform very fast double taps or mouse clicks, it performs the task (opens a seperate
The most straightforward approach here would be using setMotionEventSplittingEnabled(false)
in your RecyclerView
.
By default, this is set to true in RecyclerView
, allowing multiple touches to be processed.
When set to false, this ViewGroup
method prevents the RecyclerView
children to receive the multiple clicks, only processing the first one.
See more about this here.