Does Kotlin support java annotations such as @ColorIntbecause I cannot get it to work. I can annotate the color with @ColorInt, but not really get the control lines for this annotation.
Example
fun setStatusBarColor(@ColorInt color){
window.setStatusBarColor(color)
}
When passing R.color.colorPrimary, the thread is not displayed. Must show lint with R.color.colorPrimaryand not show withresources.getColor(R.color.colorPrimary)
source
share