ColorInt
@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.FIELD]) class ColorInt
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:
<code>public abstract void setTextColor(@ColorInt int color);
</code>
Summary
Public constructors |
|
---|---|
<init>() Denotes that the annotated element represents a packed color int, |
Public constructors
<init>
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:
<code>public abstract void setTextColor(@ColorInt int color);
</code>