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

ColorRes

public abstract @interface ColorRes
implements Annotation

android.support.annotation.ColorRes


Denotes that an integer parameter, field or method return value is expected to be a color resource reference (e.g. android.R.color.black).

Summary

Inherited methods

From interface java.lang.annotation.Annotation