Swipe and OnClick events in RecyclerView
I'm trying to implement a swipe to dismiss action in a RecyclerView but when I set an OnClickListener on any View in a ViewHolder it overrides all OnTouch events on that view. I can abandon OnClickListener and handle all clicks in the TouchListener but if I have multiple buttons in a child view of the RecycleView than that will be a lot of code and this doesn't look like a right way. In my RecyleView I'm setting Swipe to dismiss listeners ( similar to this ): setOnTouchListener(touchListener); setOnScrollListener(touchListener.makeScrollListener()); It works in the ListView, but in the