getCompatDrawableTintAttr
fun Context.getCompatDrawableTintAttr(@DrawableRes resource: Int, @AttrRes colorAttr: Int): Drawable?
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
Parameters
resource
The resource id of the drawable or vector drawable