-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding events and showing events #3
Comments
I'm not sure where this fits into the goal of the project, which is to make a date picker widget of material design. I'm not against it, but this will likely take low priority, unless this is a popular request. While this percolates: What kind of API are you thinking of? Something like this: calendarView.addEvent(new Event(date, "Extra Data")); And how should events be shown indicated on the view? |
Maybe just some different highlighting for a few "event" dates in the background using would be the easiest without a whole different UI. Might be nice option to highlight today's date too? |
Thanks for the comments. Exactly like this. |
I support this idea, i'll try to see if I can help |
So, when will be update? I can't wait. I haven't seen usage like this in other libraries, so i hope update will be soon |
I would be happy with a simpler implementation, something that just let's me return true in a delegate that checks if a date has an event, like: Dates that have events - where the delegate function returned true - could simply be highlighted with a dot below the date. Much like https://github.com/jonathantribouharet/JTCalendar |
@jlindenbaum I was trying to find an appropriate way to indicate a day had an event; thanks for the suggestion! Does anyone else have input they would like to give for the API? If we are going to use the dot indicator, I'm supportive of the delegate pattern, but I see what I initially proposed as more extensible. Maybe a mix between the two and call it an |
I'd prefer a lighter weight calendar utility, and handling my own event Since I personally want to handle the click and styling of the event On Wed, Mar 11, 2015 at 12:02 PM, Adam Koski notifications@github.com
|
I think the dot indicator would be a good idea and it would be easy to put different kind of event simply by changing the color of the dot. |
This is a very naive, and untested, implementation of how I imagine the flow. There is no caching, but that could be added. For every |
Based off #21, I'd suggest changing Functions in the delegate could now be |
|
I think it would be awesome to have events adding and deleting feature in this calendar. This is something that is implemented in Caldroid. |
A more general solution would be to provide custom decorators to day views. I was working on a very simple implementation that allows you to do so angelpinheiro@7d7f1ce. I have also updated the sample project with a new example that looks like this: First you define your decorator, to decorate day views as you want:
Then you tell calendar widget wich dates you want to decorate:
You can probably improve it in many ways, since I do not know very well the architecture of the library, but it's a starting point. I will do a pull request if you are interested! |
I like the decorator idea @angelpinheiro, but it needs some work. Will you create a pull request so we can discuss some changes? |
You can now use DayViewDecorator to show events! |
Thanks for all , Awesome Work. |
how i can add a new event like intent? |
how can i add a text below a date?? (Can be event or reminder) |
Yes, like can we popup a title or a text somehow for the decorated dates ?? |
Please Let me any idea How i can show all events on material calendar after getting from Google calendar API?? |
Please somebody give me the proper detailed code to add and view the event in this calander view |
Update group to WhistleLabs
adding events and showing events in the calender like calendar app in android.
The text was updated successfully, but these errors were encountered: