Skip to content

Instantly share code, notes, and snippets.

View charlesmadere's full-sized avatar

Charles Madere charlesmadere

View GitHub Profile

Keybase proof

I hereby claim:

  • I am charlesmadere on github.
  • I am charlesmadere (https://keybase.io/charlesmadere) on keybase.
  • I have a public key ASCTQ2eJd-4FjeNB7FfRTw43pVdFu4kNiNLFpQe6vUo4LAo

To claim this, I am signing this object:

import android.graphics.Rect
import android.support.annotation.DimenRes
import android.support.annotation.Dimension
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
/**
* Use this class to easily add space between items in a RecyclerView. Just instantiate a new
@charlesmadere
charlesmadere / DividerItemDecoration.java
Last active September 21, 2015 18:43 — forked from alexfu/DividerItemDecoration.java
An ItemDecoration that draws dividers between items. Pulled from Android support demos.
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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