Quivr / Android-Week-View

Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.
Apache License 2.0
257 stars 64 forks source link

Integrating it with AgendaView #47

Closed ShivamDev31 closed 7 years ago

ShivamDev31 commented 7 years ago

Hi, I'm integrating this lib with https://github.com/Tibolte/AgendaCalendarView . I'm using EventBus to communicate between the events. So on the click on a date in the calendar I need to scroll the WeekView to that day/date and Vice-Versa. In the click event I get the Calendar and the day property also. But I'm not getting any method to change the day in WeekView class.

Also please help me with the event which gets triggered when we scroll the WeekView as I need to update the Date/Day in the Calendar for the same.

TIA

jhoobergs commented 7 years ago

Hi,

You can use setScrollListener() to get an event every time the first visible day has changed and goToDate() to go to a specific date.

ShivamDev31 commented 7 years ago

@jhoobergs Thanks for your reply. Yeah I was missing setScrollListener() and haven't tried goToDate(). I'll try that and close this issue.

ShivamDev31 commented 7 years ago

Worked like a charm. Thanks