getCompatDrawableTintAttr

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 colorAttr

Parameters

resource

The resource id of the drawable or vector drawable

See also