Skip to content

Instantly share code, notes, and snippets.

AMOL CHAVHAN achavhan

View GitHub Profile
@achavhan
achavhan / ItemClickSupport.java
Created Sep 17, 2016 — forked from nesquena/ItemClickSupport.java
Click handling for RecyclerView
View ItemClickSupport.java
/*
Source: http://www.littlerobots.nl/blog/Handle-Android-RecyclerView-Clicks/
USAGE:
ItemClickSupport.addTo(mRecyclerView).setOnItemClickListener(new ItemClickSupport.OnItemClickListener() {
@Override
public void onItemClicked(RecyclerView recyclerView, int position, View v) {
// do it
}
});
You can’t perform that action at this time.