Android Utililty Methods Drawable Color

List of utility methods to do Drawable Color

Description

The list of methods to do Drawable Color are organized into topic(s).

Method

Drawablerecolor(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(),
...
voidfixParallaxBackgroundPreJBMR1(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,
...