Skip to content

Instantly share code, notes, and snippets.

View alexfacciorusso's full-sized avatar

Alex Facciorusso alexfacciorusso

View GitHub Profile
/*
* Copyright 2015 Chris Banes, Alex Facciorusso
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@alexfacciorusso
alexfacciorusso / expand-collapse.java
Created June 27, 2016 08:13 — 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);