Recyclerview OnTouchListener Easy way

Home  >>  Tutorials  >>  Android  >>  Recyclerview OnTouchListener Easy way

Recyclerview OnTouchListener Easy way

17
Jan,2017

0

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 *