【Android小技巧】动态修改icon的颜色
/**
* 修改drawable 的颜色
*/
private Drawable wrappedDrawable(Drawable drawable, ColorStateList colors) {
Drawable wrappedDrawable = DrawableCompat.wrap(drawable);
DrawableCompat.setTintList(wrappedDrawable, colors);
return wrappedDrawable;
}