在 android 的 CalendarView 小部件中更改所选日期的颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24838399/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Changing the color of selected dates in android's CalendarView widget
提问by Vinay Potluri
How do i change the color of the selected day in the CalendarView widget provided by android. I don't seem to find any way in the documentation.
如何在 android 提供的 CalendarView 小部件中更改所选日期的颜色。我似乎没有在文档中找到任何方法。
I can change the VerticalBars using setSelectedDateVerticalBar attribute but I want to set a background color like the one shown in this pic.
我可以使用 setSelectedDateVerticalBar 属性更改 VerticalBars,但我想设置一个像这张图片中显示的背景颜色。
I want to set the color and appearance like the one on the left but all I can get is the one on the right. Is the CalendarView library so poorly built?
我想像左边那样设置颜色和外观,但我只能得到右边的那个。CalendarView 库的构建如此糟糕吗?
Any help is greatly appreciated.
任何帮助是极大的赞赏。
回答by Kevin Michael
There is no way to do what you are trying to achieve currently. The Calendar View is very limited in its functionality.
没有办法做你目前想要实现的目标。日历视图的功能非常有限。
See this: Change CalendarView style
请参阅: 更改 CalendarView 样式