-1

Any way to use some of the preset colors provided by google calendar while creating events by configuring ContentValues.

enter image description here

I tried using

ContentValues event = new ContentValues();
    event.put("eventColor", 0xffff3300);

But this changes back to default on click of the event

Navjacinth Mathew
  • 525
  • 1
  • 4
  • 12

1 Answers1

0

You can set the color of the event through the optional colorId property. To check the valid values of color, you can go to the colors endpoint and use get method to list all the available colors.

Also, you may also be interested to look from the Android Open Source Project and this SO post.

MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65