ExtendedCalendarView icon indicating copy to clipboard operation
ExtendedCalendarView copied to clipboard

Day selection should be cleared when scroll to next or previous month

Open farrukhnajmi opened this issue 10 years ago • 9 comments

Steps to reproduce:

  1. Select a day other than current day in calendar
  2. Scroll to next or previous month

Expected result: No day should show selected Actual result: Same cell gets selected in new month

farrukhnajmi avatar Apr 11 '14 15:04 farrukhnajmi

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?

farrukhnajmi avatar Apr 15 '14 14:04 farrukhnajmi

I have the same problem, with the same Day being selected on month change.

benco03 avatar Jun 04 '14 06:06 benco03

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 avatar Aug 27 '14 10:08 megzworld

@megzworld Works perfectly thanks!

GiacomoDB avatar Oct 01 '14 19:10 GiacomoDB

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); }

borjaruiz avatar Dec 02 '14 11:12 borjaruiz

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?

ghost avatar Dec 23 '14 06:12 ghost

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);

ghost avatar Dec 23 '14 06:12 ghost

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

megzworld avatar Dec 26 '14 12:12 megzworld

With this fix in, I find the following:

  1. Select a day other than current day in calendar
  2. Scroll to next or previous month
  3. Note that nothing is selected (this is correct)
  4. Scroll back to month you started on
  5. 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).

Scraft avatar May 03 '15 19:05 Scraft