Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
protected static interface

CalendarContract.ColorsColumns

implements SyncStateContract.Columns
android.provider.CalendarContract.ColorsColumns
Known Indirect Subclasses

Summary

Constants
String COLOR The color as an 8-bit ARGB integer value.
String COLOR_KEY The key used to reference this color.
String COLOR_TYPE The type of color, which describes how it should be used.
int TYPE_CALENDAR This indicateds a color that can be used for calendars.
int TYPE_EVENT This indicates a color that can be used for events.
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
From interface android.provider.SyncStateContract.Columns

Constants

public static final String COLOR

The color as an 8-bit ARGB integer value. Colors should specify alpha as fully opaque (eg 0xFF993322) as the alpha may be ignored or modified for display. It is reccomended that colors be usable with light (near white) text. Apps should not depend on that assumption, however. Column name.

Type: INTEGER (NOT NULL)

Constant Value: "color"

public static final String COLOR_KEY

The key used to reference this color. This can be any non-empty string, but must be unique for a given ACCOUNT_TYPE and ACCOUNT_NAME . Column name.

Type: TEXT

Constant Value: "color_index"

public static final String COLOR_TYPE

The type of color, which describes how it should be used. Valid types are TYPE_CALENDAR and TYPE_EVENT . Column name.

Type: INTEGER (NOT NULL)

Constant Value: "color_type"

public static final int TYPE_CALENDAR

This indicateds a color that can be used for calendars.

Constant Value: 0 (0x00000000)

public static final int TYPE_EVENT

This indicates a color that can be used for events.

Constant Value: 1 (0x00000001)