TomTomAndroidTools
androidJvm
api_resourceresolution
/
com.tomtom.tools.android.api.resourceresolution
/
getColorByAttr
get
Color
By
Attr
@
ColorInt
fun
Context
.
getColorByAttr
(
@
AttrRes
attrRes
:
Int
)
:
Int
Returns the color value that the given
attrRes
refers to.
Throws
Illegal
Argument
Exception
if the given attribute cannot be found.