getCompatDrawableAttr

Avoids resource not found when using vector drawables in API levels < Lollipop Also 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

attribute

The resource id of the drawable or vector drawable as an attribute

See also