getStringByAttr

fun Context.getStringByAttr(@AttrRes attrRes: Int): String

Returns the string that the given attrRes refers to.

Throws

if the given attribute cannot be found.