getResourceIdByAttr

fun Context.getResourceIdByAttr(@AttrRes attrRes: Int): Int

Return a resolved resource id that the given attrRes refers to.

Throws

if the given attribute cannot be found.