getFloatByAttr

fun Context.getFloatByAttr(@AttrRes attrRes: Int): Float

Returns the float value that the given attrRes refers to.

Throws

if the given attribute cannot be found.