Android KOTLIN - get HEX String from Color Resources
I need R.color.colorAccent as HEX String
val activeColor = getResources().getString(R.color.colorAccent)
gives error for R.color.colorAccent:
Expected resource of type string less... (Strg+F1)
Ensures that resource id's passed to APIs are of the right type; for example, calling Resources.getColor(R.string.name) is wrong. Issue id: ResourceType
wow this piece of crap software shows example how to do it wrong instead of how to do it right. F android rly..