Recyclerview OnTouchListener Easy way

blogCategoryRecycler.addOnItemTouchListener(new RecyclerTouchListener(this, blogCategoryRecycler, new RecyclerTouchListener.ClickListener() {
@Override
public void onClick(View view, int position) {

}

@Override
public void onLongClick(View view, int position) {

}
}));

Leave a Reply

Your email address will not be published. Required fields are marked *