任何方式来使用谷歌日历提供的一些预设颜色,同时通过配置ContentValues创建事件。
我试着用
ContentValues event = new ContentValues();
event.put("eventColor", 0xffff3300);
但在单击事件时,此选项将更改回默认设置
发布于 2018-05-31 19:18:41
可以通过可选的colorId
属性设置event的颜色。要检查颜色值是否有效,可以转到colors endpoint并使用get
方法列出所有可用的颜色。
此外,您可能还有兴趣从Android Open Source Project和this SO post中进行查看。
https://stackoverflow.com/questions/50605757
复制相似问题