colorForAttribute

fun Context.colorForAttribute(@AttrRes attr: Int): Int

Convenience method that resolves a given attribute resource into a color resource

Parameters

attr

the attribute to be resolved