Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
adapter.showCheckboxes = !adapter.showCheckboxes;
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment