how to parse color from colors resource android code example
Example: how to change resource color to int color in android
val color = ContextCompat.getColor(
closestView.context,
R.color.name.color
)
val color = ContextCompat.getColor(
closestView.context,
R.color.name.color
)