# CalendarContract.ColorsColumns

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#constants)\|[Inherited Constants](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#inhconstants)  

# CalendarContract.ColorsColumns

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.ColorsColumns "View this page in Kotlin")\|Java

`
protected
static


interface
CalendarContract.ColorsColumns
`  
`


implements

`[SyncStateContract.Columns](https://developer.android.com/reference/android/provider/SyncStateContract.Columns)`


`

|-------------------------------------------------|
| android.provider.CalendarContract.ColorsColumns |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known indirect subclasses [CalendarContract.Colors](https://developer.android.com/reference/android/provider/CalendarContract.Colors) |-------------------------------------------------------------------------------------------------------------|------------------------------------------------------------| | [CalendarContract.Colors](https://developer.android.com/reference/android/provider/CalendarContract.Colors) | Fields for accessing colors available for a given account. | |

<br />

*** ** * ** ***

## Summary

|                                                                                                                   ### Constants                                                                                                                    ||
|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [COLOR](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR) The color as an 8-bit ARGB integer value.                               |
| [String](https://developer.android.com/reference/java/lang/String) | [COLOR_KEY](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR_KEY) The key used to reference this color.                           |
| [String](https://developer.android.com/reference/java/lang/String) | [COLOR_TYPE](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR_TYPE) The type of color, which describes how it should be used.     |
| `int`                                                              | [TYPE_CALENDAR](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#TYPE_CALENDAR) This indicateds a color that can be used for calendars. |
| `int`                                                              | [TYPE_EVENT](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#TYPE_EVENT) This indicates a color that can be used for events.           |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.provider.SyncStateContract.Columns](https://developer.android.com/reference/android/provider/SyncStateContract.Columns) |--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [ACCOUNT_NAME](https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_NAME) A reference to the name of the account to which this data belongs Type: STRING <br /> | | [String](https://developer.android.com/reference/java/lang/String) | [ACCOUNT_TYPE](https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE) A reference to the type of the account to which this data belongs Type: STRING <br /> | | [String](https://developer.android.com/reference/java/lang/String) | [DATA](https://developer.android.com/reference/android/provider/SyncStateContract.Columns#DATA) The sync data associated with this account.                                                           | |
| From interface[android.provider.BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns) |--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [_COUNT](https://developer.android.com/reference/android/provider/BaseColumns#_COUNT) The count of rows in a directory. | | [String](https://developer.android.com/reference/java/lang/String) | [_ID](https://developer.android.com/reference/android/provider/BaseColumns#_ID) The unique ID for a row.                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

## Constants

### COLOR

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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)

<br />

<br />

Constant Value: "color"  

### COLOR_KEY

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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[SyncStateContract.Columns.ACCOUNT_TYPE](https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE)and[SyncStateContract.Columns.ACCOUNT_NAME](https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_NAME). Column name.

Type: TEXT

<br />

<br />

Constant Value: "color_index"  

### COLOR_TYPE

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String COLOR_TYPE
```

The type of color, which describes how it should be used. Valid types are[TYPE_CALENDAR](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#TYPE_CALENDAR)and[TYPE_EVENT](https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#TYPE_EVENT). Column name.

Type: INTEGER (NOT NULL)

<br />

<br />

Constant Value: "color_type"  

### TYPE_CALENDAR

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int TYPE_CALENDAR
```

This indicateds a color that can be used for calendars.

<br />

Constant Value: 0 (0x00000000)  

### TYPE_EVENT

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int TYPE_EVENT
```

This indicates a color that can be used for events.

<br />

Constant Value: 1 (0x00000001)