Skip to content

Instantly share code, notes, and snippets.

@jiangecho
jiangecho / gist:4dace1e25bf5c9b90143
Created Feb 25, 2016 — forked from yqritc/gist:ccca77dc42f2364777e1
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration
View gist:4dace1e25bf5c9b90143

ItemOffsetDecoration

public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
    }
@jiangecho
jiangecho / README.md
Created Dec 26, 2015 — forked from lapastillaroja/README.md
Don't break the chain: use RxJava's compose() operator -> Android + Retrolambda + Observable.Transformer cannot find symbol method
View README.md