Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

ColorInt

public abstract @interface ColorInt
implements Annotation

android.support.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

From interface java.lang.annotation.Annotation