Giter Site home page Giter Site logo

Display Events about compactcalendarview HOT 7 CLOSED

sundeepk avatar sundeepk commented on September 3, 2024
Display Events

from compactcalendarview.

Comments (7)

SundeepK avatar SundeepK commented on September 3, 2024

I'm not sure I follow what you need. Is it possible for you to describe things further? Maybe a brief picture/diagram?

CompactCalendarView is just a view, used to display things. Events are are only really used to answer a simple question, "Hey, there's something special on this day so can you highlight it?" or "This day is no longer special, can you not highlight it anymore?". Besides, the CalendarDayEvent object contains no useful data, other than the unix time and a color for the day. It doesn't encapsulate any important data. So it is up to the client to keep track of extra data and display something interesting for a particular day.

Remember, that CompactCalendarView exposes a listener/callback hook. So, if a user selected a day, you will be notified when this happens with the date. You can then answer the question, "Is there something special on this day?". For example, you might have a booking object which has its own unix time/date and a title to say what the event is stored in a list. When a day is selected, you can iterate through the list, compare dates and display the event in the UI. Is this what your after? If so I can write some sample code if you would like in the example app.

from compactcalendarview.

MishalC avatar MishalC commented on September 3, 2024

Yes, thats what i want, basically i'm trying to add expenses to the calendar, when lets say when the user selects a past date, he can see all his expenses recorded πŸ‘

from compactcalendarview.

SundeepK avatar SundeepK commented on September 3, 2024

Ok I can add an example when I get time. But here's one way of doing it. Keep a HashMap of Date objects to a Set for each particular day. Update the calendar with the calendar events. Set up a listener for a day click. Get the Set of Expenses using the date object. Iterate through them and add them to a Listview to display them in the UI.

from compactcalendarview.

MishalC avatar MishalC commented on September 3, 2024

Ahh mate... My programming skills aren't that great.. I'm still quite unfamiliar with hashmaps.. Thanks for the help though I appreciate it :)

On Jul 15, 2015, at 5:15 AM, Sundeep Kahlon [email protected] wrote:

Ok I can add an example when I get time. But here's one way of doing it. Keep a HashMap of Date objects to a Set for each particular day. Update the calendar with the calendar events. Set up a listener for a day click. Get the Set of Expenses using the date object. Iterate through them and add them to a Listview to display them in the UI.

β€”
Reply to this email directly or view it on GitHub.

from compactcalendarview.

SundeepK avatar SundeepK commented on September 3, 2024

Please see the sample in this branch.

from compactcalendarview.

SundeepK avatar SundeepK commented on September 3, 2024

Did you have a chance too look at the sample code? I'm gonna go ahead an close this one.

from compactcalendarview.

MishalC avatar MishalC commented on September 3, 2024

Thanks a lot Sundeep! This is what I was looking for! You are awesome!

Sent from Windows Mail

From: Sundeep Kahlon
Sent: β€ŽTuesdayβ€Ž, β€ŽJulyβ€Ž β€Ž21β€Ž, β€Ž2015 β€Ž1β€Ž:β€Ž46β€Ž β€ŽAM
To: SundeepK/CompactCalendarView
Cc: MishalC

Did you have a chance too look at the sample code? I'm gonna go ahead an close this one.

β€”
Reply to this email directly or view it on GitHub.

from compactcalendarview.

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.