Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

ColorRes

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE]) class ColorRes
androidx.annotation.ColorRes

Denotes that an integer parameter, field or method return value is expected to be a color resource reference (e.g. android.R.color.black).

Summary

Public constructors

Denotes that an integer parameter, field or method return value is expected to be a color resource reference (e.g.

Public constructors

<init>

ColorRes()

Denotes that an integer parameter, field or method return value is expected to be a color resource reference (e.g. android.R.color.black).