Comments (1)
Unfortunately there is no a simple way to set a special color for a specific date, but you can try to achieve this by implementing a custom ItemDecoration
for the calendar. Let me explain what I mean.
There is a special library class AbsDateItemDecoration
that has been designed for date cells decorating. Clients of the library are able to extend this class and implement some custom drawing logic for a specific date cells. You can extend this class and draw backgraund of a special color for a specific date cells.
I have added a sample that demonstrates how to change background color of some date cells. You can find it here.
Please note, that when I draw a background for a date cell I use color with alpha (254CA5FF for example). This is required because I draw background over date cell view so the color must be transparent.
from crunchycalendar.
Related Issues (20)
- create event in calendar HOT 7
- Date Range Selection and dateSelectionFilter HOT 2
- Not scrolling to current day. HOT 8
- Translation HOT 2
- OnDateClickListener Method In Java
- How to select and deselect multiple dates in month HOT 3
- Is it possible to go to next or previous month instead of year when using the arrows that are next to month? HOT 1
- Is it possible to add some events in calendar? HOT 1
- Проверка выбора даты HOT 1
- Impossible to customize some colors HOT 2
- how to disable date in range mode
- Date scrolling issue
- Version 2.1.0 is missing on jCenter/Maven
- Make example of getPreselectedDates() and getDatesIndicators() in main page HOT 1
- How can I add custom coloured indicators?
- How to change view to only One Months.
- Sample App not available in Google Play for LineageOS 19.1 (Android 12) HOT 1
- [Question] Good calendar apps utilizing CrunchyCalendar?
- Crash in CalendarDateView
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crunchycalendar.