Skip to content

Instantly share code, notes, and snippets.

Avatar

Marios Harrane harrane

View GitHub Profile
@harrane
harrane / RatingBarVectorFix.java
Created Apr 8, 2016
A temp fix for using vector drawable with RatingBar Raw
View RatingBarVectorFix.java
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.PorterDuff;
import android.graphics.Shader;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ClipDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;