getCompatDrawableTint

Avoids resource not found when using vector drawables in API levels < Lollipop and tints the drawable depending on the current selected theme, images loaded from this method apply the Drawable.mutate to assure that the state of each drawable is not shared

Return

Drawable tinted with the tint color

Parameters

resource

The resource id of the drawable or vector drawable

colorInt

A specific color to tint the drawable

See also