Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@lucasr /
Last active

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Using ItemClickSupport from TwoWayView
ItemClickSupport itemClick = ItemClickSupport.addTo(recyclerView);
itemclick.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(RecyclerView p, View c, int pos, long id) {
itemClick.setOnItemLongClickListener(new OnItemLongClickListener() {
public boolean onItemLongClick(RecyclerView p, View c, int pos, long id) {

Would love to see how OnItemClickListener could be implemented as an object. For instance,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.