Skip to content

Instantly share code, notes, and snippets.

View MMMarcy's full-sized avatar

Marcello Steiner MMMarcy

  • Zurich, Switzerland
  • 16:59 (UTC +02:00)
View GitHub Profile
@SimoneCasagranda
SimoneCasagranda / ColorDrawableCompat.java
Created April 30, 2014 21:06
ColorDrawable extension that aims to bring newer features of the ColorDrawable to the older versions of Android like the ones prior than HoneyComb (API LEVEL 11).
package uk.co.enomis.app.compat;
import android.annotation.TargetApi;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.util.Log;
import java.lang.reflect.Field;