第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧

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