I have a RecyclerView
in place. I have a longClick
listener on some items in that RecyclerView
. If this listener is called/activated, it should then listen for a click on anything but the item that had been longClicked. How should I go about this?
I've tried setting an onClickListener
on the RecyclerView
itself, but that didn't work.
Addition: Original problem
The longClick
on an item is used to show an alternative view, similar to how notifications work in Android 6. I want to hide this alternative view again if something else is clicked.