Stay organized with collections
Save and categorize content based on your preferences.
CalendarContract.ColorsColumns
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.
|
Constants
COLOR
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"
COLOR_TYPE
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"
TYPE_CALENDAR
public static final int TYPE_CALENDAR
This indicateds a color that can be used for calendars.
Constant Value:
0
(0x00000000)
TYPE_EVENT
public static final int TYPE_EVENT
This indicates a color that can be used for events.
Constant Value:
1
(0x00000001)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CalendarContract.ColorsColumns\n\nAdded in [API level 15](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Inherited Constants](#inhconstants) \n\nCalendarContract.ColorsColumns\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/CalendarContract.ColorsColumns \"View this page in Kotlin\") \\|Java\n\n\n`\nprotected\nstatic\n\n\ninterface\nCalendarContract.ColorsColumns\n`\n\n\n`\n\n\nimplements\n\n`[SyncStateContract.Columns](/reference/android/provider/SyncStateContract.Columns)`\n\n\n`\n\n|-------------------------------------------------|\n| android.provider.CalendarContract.ColorsColumns |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [CalendarContract.Colors](/reference/android/provider/CalendarContract.Colors) |--------------------------------------------------------------------------------|------------------------------------------------------------| | [CalendarContract.Colors](/reference/android/provider/CalendarContract.Colors) | Fields for accessing colors available for a given account. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [COLOR](/reference/android/provider/CalendarContract.ColorsColumns#COLOR) The color as an 8-bit ARGB integer value. |\n| [String](/reference/java/lang/String) | [COLOR_KEY](/reference/android/provider/CalendarContract.ColorsColumns#COLOR_KEY) The key used to reference this color. |\n| [String](/reference/java/lang/String) | [COLOR_TYPE](/reference/android/provider/CalendarContract.ColorsColumns#COLOR_TYPE) The type of color, which describes how it should be used. |\n| `int` | [TYPE_CALENDAR](/reference/android/provider/CalendarContract.ColorsColumns#TYPE_CALENDAR) This indicateds a color that can be used for calendars. |\n| `int` | [TYPE_EVENT](/reference/android/provider/CalendarContract.ColorsColumns#TYPE_EVENT) This indicates a color that can be used for events. |\n\n| ### Inherited constants |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| From interface [android.provider.SyncStateContract.Columns](/reference/android/provider/SyncStateContract.Columns) |---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](/reference/java/lang/String) | [ACCOUNT_NAME](/reference/android/provider/SyncStateContract.Columns#ACCOUNT_NAME) A reference to the name of the account to which this data belongs Type: STRING \u003cbr /\u003e | | [String](/reference/java/lang/String) | [ACCOUNT_TYPE](/reference/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE) A reference to the type of the account to which this data belongs Type: STRING \u003cbr /\u003e | | [String](/reference/java/lang/String) | [DATA](/reference/android/provider/SyncStateContract.Columns#DATA) The sync data associated with this account. | |\n| From interface [android.provider.BaseColumns](/reference/android/provider/BaseColumns) |---------------------------------------|--------------------------------------------------------------------------------------------| | [String](/reference/java/lang/String) | [_COUNT](/reference/android/provider/BaseColumns#_COUNT) The count of rows in a directory. | | [String](/reference/java/lang/String) | [_ID](/reference/android/provider/BaseColumns#_ID) The unique ID for a row. | |\n\nConstants\n---------\n\n### COLOR\n\nAdded in [API level 15](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String COLOR\n```\n\nThe color as an 8-bit ARGB integer value. Colors should specify alpha\nas fully opaque (eg 0xFF993322) as the alpha may be ignored or\nmodified for display. It is reccomended that colors be usable with\nlight (near white) text. Apps should not depend on that assumption,\nhowever. Column name.\n\n\nType: INTEGER (NOT NULL)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"color\"\n\n\n### COLOR_KEY\n\nAdded in [API level 15](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String COLOR_KEY\n```\n\nThe key used to reference this color. This can be any non-empty\nstring, but must be unique for a given [SyncStateContract.Columns.ACCOUNT_TYPE](/reference/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE) and\n[SyncStateContract.Columns.ACCOUNT_NAME](/reference/android/provider/SyncStateContract.Columns#ACCOUNT_NAME). Column name.\n\n\nType: TEXT\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"color_index\"\n\n\n### COLOR_TYPE\n\nAdded in [API level 15](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String COLOR_TYPE\n```\n\nThe type of color, which describes how it should be used. Valid types\nare [TYPE_CALENDAR](/reference/android/provider/CalendarContract.ColorsColumns#TYPE_CALENDAR) and [TYPE_EVENT](/reference/android/provider/CalendarContract.ColorsColumns#TYPE_EVENT). Column name.\n\n\nType: INTEGER (NOT NULL)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"color_type\"\n\n\n### TYPE_CALENDAR\n\nAdded in [API level 15](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int TYPE_CALENDAR\n```\n\nThis indicateds a color that can be used for calendars.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### TYPE_EVENT\n\nAdded in [API level 15](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int TYPE_EVENT\n```\n\nThis indicates a color that can be used for events.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)"]]