RecyclerItemClickListener.java
package com.student.counselling. U tilities ; import android.content.Context ; import android.support.v7.widget.RecyclerView ; import android.view.GestureDetector ; import android.view.MotionEvent ; import android.view.View ; public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener { private OnItemClickListener mListener; public interface OnItemClickListener { public void onItemClick ( View view , int position ); public void onLongItemClick ( View view , int position ); } GestureDetector mGestureDetector; public RecyclerItemClickListener ( Context context , final RecyclerView recyclerView , OnItemClickListener listener ) { mListener = listener; mGestureDetector = new GestureDetector (context, new GestureDetector. SimpleOnGestureListener () { @ Override public boolean onSingleTapUp ( MotionEvent e) {