Android: Cloning a drawable in order to make a StateListDrawable with filters

Try the following:

Drawable clone = drawable.getConstantState().newDrawable();

Leave a Comment