getColorArrayByAttr

fun Context.getColorArrayByAttr(@AttrRes attrRes: Int): IntArray

Returns the color array value that the given attrRes refers to.

Throws

if the given attribute cannot be found.