# ColorInt

Artifact: [androidx.annotation:annotation](https://developer.android.com/jetpack/androidx/releases/annotation) [View Source](https://cs.android.com/search?q=file:androidx/annotation/ColorInt.kt+class:androidx.annotation.ColorInt) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.0.0)

*** ** * ** ***


```
@MustBeDocumented
@Retention(value = AnnotationRetention.BINARY)
@Target(allowedTargets = [AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.FIELD])
public annotation ColorInt
```

<br />

*** ** * ** ***

Denotes that the annotated element represents a packed color int, `AARRGGBB`. If applied to an int array, every element in the array represents a color integer.

Example:

```
public abstract void setTextColor(@ColorInt int color)
```