List of utility methods to do Drawable Color
Drawable | recolor(Resources res, Drawable drawable, int color) recolor if (drawable == null) { return null; Bitmap outBitmap = Bitmap.createBitmap( drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(outBitmap); drawable.setBounds(0, 0, outBitmap.getWidth(), ... |
void | fixParallaxBackgroundPreJBMR1(final View view, final Drawable drawable) Hack to fix pre JB MR1 Kudos to @cyrilmottier if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) { drawable.setCallback(new Drawable.Callback() { @Override public void invalidateDrawable(Drawable who) { view.setBackgroundDrawable(who); @Override public void scheduleDrawable(Drawable who, Runnable what, ... |