resourceIdForAttribute

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

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

Parameters

attr

the attribute to be resolved