Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.annotation:annotation:1.0.0-rc01

ColorInt

public abstract @interface ColorInt
implements Annotation

androidx.annotation.ColorInt


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);
 

Summary

Inherited methods