Skip to content

Instantly share code, notes, and snippets.

View john-crossley's full-sized avatar
🥔

John Crossley john-crossley

🥔
  • John Crossley
  • Manchester, England
View GitHub Profile
@john-crossley
john-crossley / expand-collapse.java
Last active August 29, 2015 14:26 — forked from ZkHaider/expand-collapse.java
Simple Expand / Collapse RecyclerView Item
public static class ExampleViewHolder extends RecyclerView.ViewHolder
implements View.OnClickListener {
private int originalHeight = 0;
private boolean isViewExpanded = false;
private YourCustomView yourCustomView
public ExampleViewHolder(View v) {
super(v);
v.setOnClickListener(this);