Closed Abdullah-Nasim closed 7 years ago
Essentially the difference is of one week between month calendar and list calendar. When I click on 19th Dec in month calendar it shows me the correct week in list calendar but when I click on 20th Dec it scrolls to 26th of Dec in List Calendar which is wrong, it should stay to the week range 19 - 26 of Dec.
Hi, I'll take a look and fix it asap.
Sorry, I can't reproduce this issue. Can you send me your piece of code when you interact between calendars?
monthCalendar.setOnDayChangeListener(new OnDayChangeListener() { @Override public void onDayChanged(Calendar calendar) {
listCalendar.setSelectedDay(DateUtils.setTimeToMidnight((Calendar) calendar.clone()), false);
}
});
monthCalendar.setOnMonthChangeListener(new OnMonthChangeListener() {
@Override
public void onMonthChanged(Calendar calendar) {
listCalendar.setSelectedDay(DateUtils.setTimeToMonthStart((Calendar) calendar.clone()), false); }
});
The code is same as your sample app.
The problem in in scroll position of the recyclerview please find below the attached example.
So I have clicked on 12th of April but the starting day in listCalendar is 16th of April which is wrong. The scroll position should be one step up.
Thanks. I got it. :)
Fixed in 0.2.0
.
I have noticed that when I click on some day like 18th of Dec 2016 on the month calendar the list calendar shows me the week starting from 19 Dec and the 18th get hidden on top. So the month calendar and the list calendar should be synchronized perfectly. How can I do that ?