Skip to content

Instantly share code, notes, and snippets.

View homj's full-sized avatar

Johannes Homeier homj

View GitHub Profile
@flore2003
flore2003 / CardViewUtils.java
Last active January 21, 2016 01:35 — forked from homj/CardViewUtils.java
Utility class to calculate paddings and set margins on CardViews to correctly align them in a layout
package de.twoid.widget.util;
/*
* Copyright 2015 Johannes Homeier, Florian Reifschneider
*
* 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
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="red_500_primary">#f44336</color>
<color name="red_50">#ffebee</color>
<color name="red_100">#ffcdd2</color>
<color name="red_200">#ef9a9a</color>
<color name="red_300">#e57373</color>
<color name="red_400">#ef5350</color>
<color name="red_600">#e53935</color>
<color name="red_700">#d32f2f</color>
/*
* Copyright (C) 2014 sebnapi
*
* 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