Giter Club home page Giter Club logo

Comments (11)

p-v avatar p-v commented on July 2, 2024

You can extend BaseCellView and override onDraw. I have updated the demo app. Look out for Calendar 5.

from flexiblecalendar.

p-v avatar p-v commented on July 2, 2024

Feel free to reopen if this wasn't what you were asking for 😃

from flexiblecalendar.

fncapps avatar fncapps commented on July 2, 2024

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:
calview

from flexiblecalendar.

p-v avatar p-v commented on July 2, 2024

Do you also want event circles on those cells? Do these different colors denote that the day has an event?

from flexiblecalendar.

fncapps avatar fncapps commented on July 2, 2024

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.

p-v avatar p-v commented on July 2, 2024

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.

fncapps avatar fncapps commented on July 2, 2024

I'll have a look at it when I have some time. Thanks for the help!

from flexiblecalendar.

p-v avatar p-v commented on July 2, 2024

Sure. Feel free to post your queries. 😃

from flexiblecalendar.

fncapps avatar fncapps commented on July 2, 2024

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.

p-v avatar p-v commented on July 2, 2024

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.

sanke-t avatar sanke-t commented on July 2, 2024

@p-v can't seem to locate the example branch. If you could please provide the updated URL.

from flexiblecalendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.