Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ColorLong

@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.FIELD]) class ColorLong
androidx.annotation.ColorLong

Denotes that the annotated element represents a packed color long. If applied to a long array, every element in the array represents a color long. For more information on how colors are packed in a long, please refer to the documentation of the android.graphics.Color class.

Example:

<code>public void setFillColor(@ColorLong long color);
  </code>

Summary

Public constructors

Denotes that the annotated element represents a packed color long.

Public constructors

<init>

ColorLong()

Denotes that the annotated element represents a packed color long. If applied to a long array, every element in the array represents a color long. For more information on how colors are packed in a long, please refer to the documentation of the android.graphics.Color class.

Example:

<code>public void setFillColor(@ColorLong long color);
  </code>