Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Using ItemClickSupport from TwoWayView

View sample.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
ItemClickSupport itemClick = ItemClickSupport.addTo(recyclerView);
 
itemclick.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(RecyclerView p, View c, int pos, long id) {
...
}
});
 
itemClick.setOnItemLongClickListener(new OnItemLongClickListener() {
@Override
public boolean onItemLongClick(RecyclerView p, View c, int pos, long id) {
...
}
});
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.