Comments (11)
You can extend BaseCellView
and override onDraw
. I have updated the demo app. Look out for Calendar 5.
from flexiblecalendar.
Feel free to reopen if this wasn't what you were asking for 😃
from flexiblecalendar.
I don't really know how to do it >.<
Probably I explained wrong, I was trying to make some cells different from others maybe changing their background or just the full layout.
Can you give me a more simple example?
EDIT: I want to achieve something like this view:
from flexiblecalendar.
Do you also want event circles on those cells? Do these different colors denote that the day has an event?
from flexiblecalendar.
I won't need event circles on those days.
The idea is not like having an event on those days but making different types of days.
For example, weekdays and weekends could have different colors to identify them quickly. Holidays could also have the weekend colors, etc...
from flexiblecalendar.
Check the Calendar 3 in example branch. I'm using the first event in the event list to determine the color of the background. You will have to build your own logic to determine weekends. Just pass the drawable/color using EventDataProvider
interface in the first item of the list. Only the first item is considered in this particular case in the custom cell view.
You will also have to implement your own custom BaseCellView as show in the example. In the onDraw
of the custom cell you can play with the states. Like, what background has to be shown if its a weekend and has been selected.
from flexiblecalendar.
I'll have a look at it when I have some time. Thanks for the help!
from flexiblecalendar.
Sure. Feel free to post your queries. 😃
from flexiblecalendar.
Hi, I've been looking into your code. I have implemented the same code, without any logic, just fixed dates to try out if it is working.
I can see "events" highlighted but I cannot set the color to the whole cell_background... What I'm I missing?
from flexiblecalendar.
What do you mean when you say you are able to see the events highlighted but you are not able to set the background? Are you using EventBackgroundCellView
from the example?
from flexiblecalendar.
@p-v can't seem to locate the example branch. If you could please provide the updated URL.
from flexiblecalendar.
Related Issues (20)
- Calendar month not show all dates HOT 1
- How to convert month to weekview in the library HOT 1
- Populate event on calendar load - how to get start and end date HOT 1
- On month scroll / moving to next / previous month HOT 1
- Event dot is not showing for Today's event HOT 1
- Date selected remains persistent on month change. HOT 6
- Cannot change color of selected date (text)
- How can I setEvent on current day? HOT 4
- Remove android:label from the Manifest
- Event color issue HOT 1
- Calendar not showing correctly on tablet in landscape mode
- how to unselect selected date by click selected date
- Add event dyanamically
- How to set start and End date for Calender? HOT 1
- Scrolling Issue in Flexible Calender
- designing
- How to get start and End date for Calender?
- How to change calendar number convert arabic?
- Attempt to invoke virtual method 'boolean com.p_v.flexiblecalendar.entity.SelectedDateItem.equals(java.lang.Object)' on a null object reference
- How can i set visible only next 14 days
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 flexiblecalendar.