Skip to content

Instantly share code, notes, and snippets.

@lucasr lucasr/
Last active Mar 5, 2016

What would you like to do?
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) {

This comment has been minimized.

Copy link

commented Jul 19, 2015

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
You can’t perform that action at this time.