getIntegerByAttr

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

Returns the integer value that the given attrRes refers to.

Throws

if the given attribute cannot be found.