ExtendedCalendarView
ExtendedCalendarView copied to clipboard
Day selection should be cleared when scroll to next or previous month
Steps to reproduce:
- Select a day other than current day in calendar
- Scroll to next or previous month
Expected result: No day should show selected Actual result: Same cell gets selected in new month
Actually it seems that when the month is changed the month calendar is not repainted at all. It is possible that I broke something in my fork. Is any one else experiencing this problem?
I have the same problem, with the same Day being selected on month change.
If this problem is solved then its fine but for all who are still facing the problem add this two lines in refreshCalendar() method
mAdapter = new CalendarAdapter(context,cal); calendar.setAdapter(mAdapter);
issue will be solved cheers
@megzworld Works perfectly thanks!
My method looks like this and it doesn't work when swiping... public void refreshCalendar(){ mAdapter = new CalendarAdapter(context,cal); calendar.setAdapter(mAdapter); } this does not works either. public void refreshCalendar(){ mAdapter.refreshDays(); mAdapter.notifyDataSetChanged(); mAdapter = new CalendarAdapter(context,cal); calendar.setAdapter(mAdapter); }
How to remove that black background, when i click a date it shows background black circle and it is not changed position when i go to next month, so how to delete that black circle?
It's working fine. It's not deleted but that black circle is not visible when i goto next month.
mAdapter = new CalendarAdapter(context, cal); mAdapter.refreshDays(); mAdapter.notifyDataSetChanged(); calendar.setAdapter(mAdapter);
My Pleasure
On Tue, Dec 23, 2014 at 12:25 PM, MHanumanthaRao [email protected] wrote:
It's working fine. It's not deleted but that black circle is not visible when i goto next month.
mAdapter = new CalendarAdapter(context, cal); mAdapter.refreshDays(); mAdapter.notifyDataSetChanged(); calendar.setAdapter(mAdapter);
— Reply to this email directly or view it on GitHub https://github.com/tyczj/ExtendedCalendarView/issues/25#issuecomment-67926397 .
Thanks & Regards * *Meghal Adesra http://goog_1688782553 www.makkinfotech.com http://www.makkinfotech.com India : +91 7878027137
With this fix in, I find the following:
- Select a day other than current day in calendar
- Scroll to next or previous month
- Note that nothing is selected (this is correct)
- Scroll back to month you started on
- Note that still nothing is selected (this is incorrect, it should continue to highlight the previous selection)
This behaviour is still probably better that the original, but I could really do with a fix that addresses this too (otherwise changing months is buggy, which is a pretty core feature I'd say).