Skip to content

Instantly share code, notes, and snippets.

AMOL CHAVHAN achavhan

Block or report user

Report or block achavhan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.